ApplesauceOS
Read Markdown ↗Download .md

frontMostAppId

Identify the foreground app.

js
frontMostAppId()

Arguments

No arguments.

Returns

Bundle ID string, or null.

Example

js
console.log(frontMostAppId());

All JavaScript APIs · Automation playbook