I tried setting up keyboard shortcut for 'Try action' menu item. Both using Mac system preferences as well as a Macro in Keyboard Maestro.
Looks like the menu item is dynamic (The menu item text changes) based on how many actions are selected. I'm looking for solution where I can Try action using same keyboard shortcut irrespective of how many actions I have selected.
If the solution is found, I'd also like to apply it to another menu item 'Disable/Enable action'.
KM supports using regular expressions with menu commands by adding a ^ at the start of the command, which lets you do something like this for dynamic items:
I don't know what those symbols mean. Can you please point me in the right direction to learn it so that next time I'm dealing with dynamic menu item, I can apply things. I am from a non-technical background so please suggest accordingly.
You're welcome. Those symbols are part of a pattern matching syntax called regular expressions, or regex for short. They're very useful, and there's a lot of pre-existing discussion about them on this forum, with one of several threads on the best way to learn them having been bumped very recently:
Be aware that regular expressions can be used in many other places besides Keyboard Maestro. They are super-handy. Learning the easy stuff is..easy. The harder stuff with regexps are also less commonly needed.