Apple Script referring to an BTT trigger freezes BTT

Describe the bug
Running the following blocking/async apple script via a TouchBar Button:

tell application "BetterTouchTool"
   execute_assigned_actions_for_trigger "UUID_here"
end tell

Assigned action, open TouchBar Group with name XY.
The thing is, if I use the button, the specific TouchBar Group opens up, and after this BTT freezes. Have to force quit it in the Activity Monitor.

The trigger runs an Apple Script too, which, if I test it in the trigger's settings, works perfectly.

Find attached the Crash Report from the Console.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Touch Bar, Apple Script.

Screenshots
xxx

Device information:

  • Type of Mac: MacBookPro15,1
  • macOS version: 10.14.5 Beta (18F108f)
  • BetterTouchTool version: 2.763

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
xxx

Crash Report

BetterTouchTool_2019-03-25-172641_BlackBook.crash (96.8 KB)

@Andreas_Hegenberg let me know if you need any further information. I'm working on a Pomodoro widget for the TouchBar, think this would be really cool to have! All the actions work, just this little passthrough is a troublemaker.

could you possibly replace the trigger with a named trigger and execute it using trigger_named_async_without_response ?

E.g.

tell application "BetterTouchTool"
   trigger_named_async_without_response "the_named_trigger_name"
end tell

In your case probably a deadlock between the scripts is happening (Apple Script isn't really made for this kind of stuff :grinning:)

1 Like

You impress me every time! That worked, thanks! :smiley: