[Feature Request?] Find all uses of an action

Continuing the discussion from Named Clipboard Question:

Wanting to change all Type a Keystroke ⌘C to the action Copy, it occurred to me that it would useful to have a way to find all uses of a selected action. To some extent I can do this by searching (e.g., for “Keystroke”), but that gets other things to, including macros with “Keystroke” in their name.Continuing the discussion from How do you use Palettes (if you do)?:

Search for

"Type the ⌘C Keystroke"

With the quotes.

2 Likes

Would this work even if I renamed the action (i.e. right-clicked and did “rename”)?

No, it will not find it if you have renamed it. It probably could I suppose.

That’s OK. I’ll learn to name things so I can find specification actions. And I can always export and search the XML.

Thanks for the info!

This is gold! How do you find this kind of information out?

It seems like it would be located here but I don't see it here. Are there other nuggets like this for searching and finding macros?

https://wiki.keyboardmaestro.com/manual/Search_Strings

It's just a "normal" search for any occurrence of the string "Type the ⌘C Keystroke". As such it would also find actions such as:

...so may throw some false positives, depending on the string.

Oh good to know and that makes more sense. Still I didn't know you could type in Action names as part of the search. Probably obveous but that is good to know. Thanks for the pro tip and making me aware of the false positives.

You aren't -- you're typing in a phrase that is compared against everything, including Action names. It's a subtle but important difference -- as you've seen on the "Search Strings" page, you can restrict searches to macro names or Action IDs but not Action names.

You can search directly against Action names using AppleScript but you'll have to iterate through every macro and recurse every nesting ("Group", "If", "Repeat", etc) -- so considerably slower. Much easier to accept the occasional false positive!

Yes, yes absolutely it would have been better if I had said that Action Names can be part of that search.

Good to know and yes, just learning that from another post you recently posted. A lot of helpful things I am learning from you. Thank you!