Applescript Refuses To 'Do Script'

I've got an Applescript that executes a 'do script' command, but it always gives an error in Script editor. The script is absolutely there and the filename is absolutely correct, and it's active, and not part of deactivated macro group. Any idea what would cause this?

The test code is

tell application "Keyboard Maestro Engine"
	do script "Name Updating Window"
end tell

Any suggestions would be appreciated!

I'm not quite sure that I understand your reference to a file name,
but, if you are sure that the macro is enabled, the most direct and explicit way to call a macro with do script is to furnish the macro's UID.

  • Select enabled macro in Keyboard Maestro Editor
  • From the main menu: Edit > Copy as > Copy UUID
2 Likes