As far as I can tell, when using JXA or AppleScript, there's no (easy) way to get an Action object for a specific Action ID.
I mean, you can get a Macro object for a specific UUID, and I suppose in theory you could traverse its actions until you found the one you were looking for, but that's harder than you might think, since Actions can be contained in other actions.
Agreed. Except KM knows how to do it, otherwise "selectAction" wouldn't work.
Yes, I know the macro, but thanks for that.
Thanks, that's awesome, and it might lead me to the solution I need. I'll post a different topic on the JXA code I've been working on which is kind of similar to that, except I'm having issues.
Yes, but Keyboard Maestro has all the macros and actions already - AppleScript does not, and I'm not sure I can create them all (in AppleScript land) to make the result work. Probably it's possible, but AppleScript land is an entertaining place to mess around with.