A trigger in Keyboard Maestro that triggers a macro when an application launches, quits, is running, activates, deactivates, or is active.

Application Trigger

Keyboard Maestro: I use an application trigger in KM to automatically open an assigned website when the assigned application is launched.

Download Tooltip Pro