ApplesauceOS
Read Markdown ↗Download .md

ObjC.getInfo

Inspect the target process/session.

js
ObjC.getInfo()

Arguments

No arguments.

Returns

Object {pid, processName, bundleId, sessionId, retainedObjects}. retainedObjects is the current session’s retained-reference count.

Example

js
console.log(ObjC.getInfo().processName); // "SpringBoard"

Notes

Start with Objective-C step by step. Also available on app = RemoteObjC.forApp(bundleId) as app.getInfo(). Selecting or opening another app does not change the local ObjC target.

All JavaScript APIs · Automation playbook