I have a macro that exports specific macro groups to create a new version of a macro set to distribute to my colleagues. I'm trying to add a smart group to this macro set and having trouble with the applescript to select both the macro groups and smart group(s).
tell application "Keyboard Maestro"
activate
select (macro groups whose name contains "HC" and name does not contain "Installer")
select (smart groups whose name contains "HC" and name does not contain "Installer")
end tell
This script selects the correct groups sequentially, but I can't figure out how to additively select macro groups and smart groups via applescript. I tried:
tell application "Keyboard Maestro"
activate
select (macro groups whose name contains "HC" and name does not contain "Installer") & (smart groups whose name contains "HC" and name does not contain "Installer")
end tell
As well as
tell application "Keyboard Maestro"
activate
set selectedGroups to (macro groups whose name contains "HC" and name does not contain "Installer") ¬
& (smart groups whose name contains "HC" and name does not contain "Installer")
select selectedGroups
end tell