getAppState
Read an app’s process state.
js
getAppState(bundleId)Arguments
| Argument | Type | Meaning |
|---|---|---|
bundleId | string | App identifier. |
Returns
"NOT RUNNING", "ACTIVATED", or "DEACTIVATED".
Example
js
console.log(getAppState("com.apple.Preferences"));Read an app’s process state.
getAppState(bundleId)| Argument | Type | Meaning |
|---|---|---|
bundleId | string | App identifier. |
"NOT RUNNING", "ACTIVATED", or "DEACTIVATED".
console.log(getAppState("com.apple.Preferences"));