Submitted for your review, comment, and/or revision, the following Wiki article has been updated:
- Added table to clarify what type of Macro Group is needed for each app trigger type.
Running Keyboard Maestro 8.2.1 (8.2.1) on macOS 10.12.6
The text of the existing Wiki article is inconsistent with my testing. I just created a Macro to trigger on Excel activation, in a Macro Group available ONLY in Excel, and it fired when Excel launched.
EDIT: Just for grins, I duped the macro and put in BBEdit group, with BBEdit Activates Trigger. Same result.
The wiki states:
Caution: As with all triggers, the trigger will fire only if the Macro Group that contains it is active, which is based on the current foreground application before the specified application launches, or after the specified application is deactivated or quits. In practice, this means the Macro Groups that contain this trigger should be targeted at All Applications.
Be careful not to place macros with these triggers inside a macro group that is only active when the specified application is active. Otherwise, by the time the macro itself becomes active, the application has already launched and activated and so the macro will not fire.
My macro is very simple, but I will upload so you can see and test for yourself:
MACRO: Test App Activation Trigger
~~~ VER: 1.0 2018-07-02 ~~~
Test App Activation Trigger.kmmacros (2.4 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.