tell application "Keyboard Maestro" set selList to selection set macroList to selected macros set grpList to selected macro groups end tell