tell application "Keyboard Maestro" --- First Select an Action, Macro, or Macro Group -- in the KM Editor, then run this script set kmList to selection set kmClass to class of item 1 of kmList -->Based on selection, will return one of these: -->action, macro, macro group end tell