MacroTriggerd by "name of application is at front" or "macro group is active"

I have a number of Macro Groups that are enabled AND I've selected "Available in the applications" and I've selected a single application, eg Safari, Valentin, Family Tree Maker, for each group

If I look at the "Trigger" statement at the top of a macro I have two "types" which I'll call A and B

Both types show the following when they are disabled "Triggered by any of the following when macro is enabled"

However when the macro is enabled they show two different messages

Type A: "Triggered by any of the following when [name of application] is at front"

OR

Type B: "Triggered by any of the following when macro group is active"

I want the "Type A" behavior but I can't figure out how to turn it on, or how I got it in the first place.

Can someone please help me to know something I apparently once knew!

I think you're just worried about a semantic choice that Peter made when designing this feature. If a macro is in a group that's enabled only for one specific application, you'll see the Type A message. Add another app to that group, though, and the macro text will change to Type B.

But operationally, there is no difference: As long as the group is restricted to one or more applications, both Type A and Type B will only be available when an app in the group's list of apps is frontmost.

You can easily test this by making a group available to just one app, adding a simple macro, and checking the text, which will be Type A. Now add another app to the group, and that same macro will show Type B text.

I assume it was written this way because seeing "...when one of Safari, Firefox, Chrome, Arc, Brave Browser, Safari Technology Preview, or Microsoft Edge is at the front" would be overly wordy and fill the screen with a bunch of text.

-rob.

Thanks Rob.... but worrying about semantics is what I do :grinning_face_with_smiling_eyes: . I've done some more playing and have found the trick... its how the group is enabled

"Available when these applications are running" gives Type B

"Available in these applications" gives TypeA,

I like to use ⌃⌥⌘b to mean "backup" in all applications, but only active for the one at the front, ie Type A behavior. If I use TypeB then the common trigger produces a conflict palette

Dave

Check very carefully -- "...is at front" is for the "Available in these applications" option, "...when macro group is active" shows when the "...these applications are running" option (amongst others) has been selected. Different words for different things.

The text shown in the Trigger line is simply to try to avoid people making mistakes and not understanding why a macro is not triggering.

One of the most common problems people have is "My macro does nothing". This generated a lot of my support email. I don't particularly like support email because a) it takes me time, and b) it means the customer is wasting their time waiting for my response, and c) it indicates that Keyboard Maestro is not clear to them.

I would nonetheless dutifully respond with an explanation of all the ways a macro could do nothing and what to check.

So I added the Interactive Help, Something expected is not happening, which automates all those checks, and I added text to the triggered by text to help encourage people in the right direction.

So a macro will trigger if its trigger happens while its active, and it is active if it is enabled and the parent macro group is enabled and the parent macro group is active. There are many ways a macro group can be active, but one of the most common is simply active in a specific application.

So the text makes that clear, but any other possible case of a macro group being active is too complex to express in such a small amount of words, so if the macro group is active only in a single specific application (and all other macro group settings are the normal defaults), then it will offer that as the reason. For any other case, it will simply point out that the macro group needs to be active.