Have to replace AppleScript with shell script to trigger Keyboard Maestro macros

BTT 5.793, Keyboard Maestro 11.0.4, Sequoia

Many of my BTT gestures trigger Keyboard Maestro macros using an AppleScript (taken from the KM macro itself) and they have worked for years. Suddenly quite a few of these gestures no longer worked, and I found that replacing the AppleScript with a shell script (I did not try other scripts) works.

In view of the large number of KM macros triggered by BTT gestures, it would be quite an effort to have to convert them all to shell scripts. I don’t understand why some gestures still work with AppleScript.

In addition, I would like to ask: what is the best script to use to trigger Keyboard Maestro macros, just to make sure that I don’t have to change scripts yet again in the future.

thank you very much

I don' think there has been a change to Apple Script handling in either macOS, BTT or Keyboard Maestro. Have you tried to restart your machine?

How do your scripts look like?

1 Like

Hello @Andreas_Hegenberg . thank you for your reply.

Please note that I checked that the KM macro was working correctly.

I will restart my Mac next time I have a problem.

-- ignoring application responses
tell application "Keyboard Maestro Engine"
	do script "A8A6FF9D-0619-4D62-A831-7C33A778096E"
	-- or: do script "Toggle Cycle Applications Palette ⇢ Reposition Under Cursor v1.00"
	-- or: do script "A8A6FF9D-0619-4D62-A831-7C33A778096E" with parameter "Whatever"
end tell
-- end ignoring
osascript -e 'tell application "Keyboard Maestro Engine" to do script "A8A6FF9D-0619-4D62-A831-7C33A778096E"'

re-starting Mac does not help. I just had to change another script.

then I'd guess a permission issue, does your BTT still have permission to automate keyboard maestro in System Settings -> Security & Privacy -> Automation?

Maybe this needs to be reset

1 Like

It was checked I unchecked and re checked it. Let's see what happens. Thank you