An AppleScript "do script" is not running a Macro when called by name but runs it when called by UUID. Other test Macros don't respond to either.
versions KM 8.2.4 ; AppleScript 2.7 ; MacOS 10.13.6
I've searched these forum messages and checked all the suggestions. Still no luck.
https://forum.keyboardmaestro.com/t/error-do-script-found-no-macros-with-a-matching-name/5735
https://forum.keyboardmaestro.com/t/el-capitan-10-11-6-and-keyboard-maestro-engine-got-an-error-do-script-found-no-macros-with-a-matching-name/4448/3
The Macro to test an AppleScript is pretty simple:
It is enabled and sits in the Global Macro Group which is also active and unrestricted
This AppleScript is run from the Script Editor:
tell application "Keyboard Maestro Engine"
do script "4379B59B-EC3A-4E02-BB08-D92A178995A3"
delay 2
do script "Decrease Sound Volume"
end tell
The first call to do script works.
The second generates this error:
Result:
error "Keyboard Maestro Engine got an error: do script found no macros with a matching name" number -1
The UUID and the Name refer to the same Macro. (UUID came from "Copy as UUID")
Peter's checklist:
The normal cause for that is trying to execute a macro that either:
• Does not exist. (exists)
• Is disabled. (enabled)
• Not in application specific group (Global Macro Group)
• Is in a Macro Group that is disabled. (Group enabled)
• Is in a Macro Group that is currently inactive. (Group always active)
Any other suggestions?