tell application "Keyboard Maestro" # Ver 1.1 2017-09-20 set macroList to every macro whose selected is true --- Make Sure Only ONE Macro is Selected --- if ((count of macroList) = 1) then set oMacro to item 1 of macroList else error "Multiple Macros are selected. Select only ONE and re-execute this script." end if --- Now We can Get/Set Macro Properties --- set macroName to name of oMacro return macroName end tell