Submitted for your review, comment, and/or revision, the following Wiki article has been updated:
Application Trigger
Primary Changes:
- Added table to clarify what type of Macro Group is needed for each app trigger type.
Issue
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
#### DOWNLOAD:
<a class="attachment" href="/uploads/default/original/3X/3/2/32d1946a2fa94ea89c78a54712598544df52cd20.kmmacros">Test App Activation Trigger.kmmacros</a> (2.4 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
---
![image|484x479](upload://sXhmrWVHWJX76VsRVs4PFynB3Mi.jpg)
---
### Macro Group
![image|269x189](upload://3WcaXmreUhn4NO4IHY2qypc50av.png)