My problem is that I created a variant (described in the discussion above) which is constantly activating and deactivating macro groups / palettes.
This poses a minor problem: from time to time there is a glitch and a macro group is activated by not deactivated which causes casually typing characters which serve as keyboard shortcut in that group to trigger macros. If that happens, I have to identify the problematic active macro group, and that's the task that I want to simplify.
Is there a simple way to list all current active groups.
I hadn't noticed the addition to the status menu Peter pointed out. Super easy!
I have several macros that work with groups using applescript. For example, you can get the names of enabled macro groups like this:
tell application "Keyboard Maestro"
set EnabledGroups to name of macro groups whose enabled is true
end tell
In case it's useful to see the actions, here's a macro that does the same thing as the status menu "Show Active Macro Groups" using applescript, but could be modified to include all groups, only include smart groups, filter groups, get the UUID instead of or in addition to name, etc.:
Using the same approach in the original macro, we can replicate the first three actions but use the variable saved from the first prompt, which contains the name of the selected group, and modify the applescript slightly to create a list of macros in the selected group based on that saved variable:
-- Get the variable where we stored selected group from the first prompt
set kmInst to system attribute "KMINSTANCE"
tell application "Keyboard Maestro Engine"
set asSelectedGroup to getvariable "Local__SelectedGroup" instance kmInst
end tell
-- Get list of all macros in selected group
tell application "Keyboard Maestro"
return name of every macro of macro group asSelectedGroup
end tell