Page 1 of 1

bind rgp lua script to hotkey

Posted: Sat Jan 06, 2024 4:49 pm
by rjawad1
How do I bind an rgp lua script to a hotkey?

Re: bind rgp lua script to hotkey

Posted: Sat Jan 06, 2024 5:19 pm
by michelp
On the Mac, you could use Keyboard Maestro. Scripts are a menu item, which can be associated to a hot key.

Re: bind rgp lua script to hotkey

Posted: Sat Jan 06, 2024 5:52 pm
by rjawad1
Perfect! Thanks a lot.

Re: bind rgp lua script to hotkey

Posted: Sat Jan 06, 2024 6:06 pm
by rjawad1
Do you know if there is a similar way to access the right-click menu options in KM?

Re: bind rgp lua script to hotkey

Posted: Sat Jan 06, 2024 6:32 pm
by bakkumd
Short answer: Yes, it's possible to access right click menu items.

Long answer: KM allows for AppleScript code within macro actions - so you could do it. You will get very deep in the weeds very quickly however. All right click menu items are application dependent, and also under pointer object dependent. That's what makes it complicated.

Here is a link to one of many KM threads referring to right click menu control via KM:
https://forum.keyboardmaestro.com/t/key ... os-x/16972

Re: bind rgp lua script to hotkey

Posted: Fri Jan 12, 2024 1:12 am
by rjawad1
Thanks for the information. It's excessive for what I'm working on right now, but I do have plans to come back to this with some other automation tasks I need to do.

Re: bind rgp lua script to hotkey

Posted: Fri Jan 12, 2024 9:10 pm
by cv186
AppleScript doesn't work for KM with Finale menus. (Finale menus don't behave like other programs). After extensive research here's the only workable solution I could find:
https://carlvine.com/cgi-bin/index.cgi?cv=km_opt