I don't know if this is possible. I have a macro group that is triggered with the "Shows/Hides a Palette" using a hotkey.
Each macro in the group has a hotkey trigger itself, but the hotkeys used are simply keystrokes without modifiers (command, option, ctrl, etc). Therefore, I do not want the macro group active unless the palette is being displayed; obviously if the group were always active then routine typing would trigger these macros.
I would also like to be able to trigger these macros from AppleScript. However, when I try to do that, I get an error back that no such macro can be found. If I display the palette, then the AppleScript will execute the macro.
This is not unexpected behavior, as I have found previously that macros in a palette can only be triggered if the palette is active, but what I really need is a way to set a macro group so that its macros can be triggered programmatically even when the palette is not displayed. Is there a way to do this? Am I missing something? (Note that the macro group itself is enabled; it's just that as far as I have been able to determine, macros I a macro group that is displayed as a palette in the way I am doing it are not accessible until the palette is displayed, and for the reasons outlined above due to the hotkeys I do not want the macros triggered by hotkeys unless the palette is showing.)
The only solution I have thought of is to create a macro group with the macros themselves, which are always enabled but without hotkey triggers and then a second group displayed as a palette, in which I create duplicate macros, each with a hotkey and just triggering the appropriate macro from the first group. This should work fine, but I wonder if I am missing something that would be a simpler solution.
Thanks.