Show BTT Preferences with AppleScript

Hello guys,

I want to find a way to activate BTT (show BTT Preferences) when it is already running in background without 'running indicator' in the dock.

I thought of a simple '"tell application "BetterTouchTool" to activate' with Apple Script, but it does not work.
I know BTT has already the trigger "Show BTT Preferences" but I would like to do it with Applescript.

Thank you in advance
Noobchen

  1. Go to the trigger section and create a new named trigger that uses the "Show BTT Preferences" action

  2. Copy its UUID (by selecting it and hitting ⇧⌘C)

  3. Use this apple script to bring up BTT settings:

    tell application "BetterTouchTool" to execute_assigned_actions_for_trigger "PASTE_YOUR_UUID_HERE"
2 Likes

Oh man, thanks! That was easy!! :smiley:

Noobchen

Or generic without UUID:

tell application "BetterTouchTool" to trigger_action "{\"BTTPredefinedActionType\": 105}"
2 Likes

Hallo Andreas, where/how did you get that number?

If you copy a trigger to your clipboard (cmd+c) and paste it in a text editor, it will show.
I recently posted the full list of actions here: BTT Predefined Actions list for Applescript
But as this is constantly extended and often the action ID alone won't be enough, it's better to copy a configured trigger and remove the properties you don't need.

1 Like