Skip to content

frontmost

diapason.desktop.frontmost

Frontmost application helpers (macOS).

frontmost_app_name()

Return the frontmost app name, or None if unavailable.

is_email_composer_context()

True when the user is likely composing email (Mail/Outlook frontmost).

wait_until_frontmost(app_name, *, timeout_s=2.0)

Wait briefly for an app activation and report the observed result.