ApplesauceOS
Read Markdown ↗Download .md

getAppState

Read an app’s process state.

js
getAppState(bundleId)

Arguments

ArgumentTypeMeaning
bundleIdstringApp identifier.

Returns

"NOT RUNNING", "ACTIVATED", or "DEACTIVATED".

Example

js
console.log(getAppState("com.apple.Preferences"));

All JavaScript APIs · Automation playbook