ApplesauceOS
Read Markdown ↗Download .md

appStateInfo

Read installation, process and foreground state separately.

js
appStateInfo(bundleId)

Arguments

ArgumentTypeMeaning
bundleIdstringApp identifier.

Returns

Object: {installed, running, foreground}.

Example

js
console.log(JSON.stringify(appStateInfo("com.apple.Preferences")));

All JavaScript APIs · Automation playbook