ApplesauceOS
Read Markdown ↗Download .md

ObjC.close

Release a native session and invalidate its references.

js
ObjC.close()

Arguments

No arguments.

Returns

No return value (undefined).

Example

js
const app = RemoteObjC.forApp("com.apple.Preferences");
app.close();

Notes

Start with Objective-C step by step. Also available on app = RemoteObjC.forApp(bundleId) as app.close(). Also invalidates this client’s C handles. Remote cleanup is best effort when unreachable.

All JavaScript APIs · Automation playbook