Trigger Macro By Name Action

I am talking about "my" macro.

I have no idea as it was one of the first macros I copied when I started reading the forum.

I tested it and it works whether it is / is not engrouped!

Apologies, I should have caught that and understand that .* means "match absolutely anything, of any length" so in this case it is any Keyboard Maestro Engine window.

I tested it further and noted that:

  1. It works when called before the Trigger Macro By Name is called.

  2. It works when called after the Trigger Macro By Name is called.

  3. It works when folded into the macro that calls Trigger Macro By Name provided the two actions come after, but not before (i.e., it fails), spawning the search bar, which makes total sense!

One follow up: Any explanation / idea as to why targeting a specific Keyboard Maestro Engine window (i.e., contains Trigger Macro By Name) fails but targeting any Keyboard Maestro Engine window (matches .*) works??

Huge thank you for solving this for me.

I was being too surgical by trying to match onto search bar name! :frowning:

Gentle follow up, would greatly appreciate someone answering this.

Thank you!!

The Any Window condition only scans foreground processes applications, if you specify a background only application like Keyboard Maestro Engine, it just looks at the foreground application.

So you cannot use it like this.

Thanks for the correction, @peternlewis -- I was starting to wonder, since I couldn't reliably reproduce my original solution. Working hypothesis is that I simply got lucky with timing, my slow machine taking long enough to spawn the submacro that the Prompt was up by the time the Delete keystroke was sent.

@Joel -- sorry for the bum steer! I know you're trying to avoid it, but it does seem like the AS method is the most reliable route to your destination.

@peternlewis and @Nige_S

Appreciate the clarifications and response especially since I could not rationalize why targeting a specific window failed while targeting all windows worked when both were tested against Keyboard Maestro Engine. The mystery is solved, neither works, you cannot target Keyboard Maestro Engine's windows!

Thanks to both for all of your help!! Greatly appreciated.