Enable/disable Touchbar widgets via AppleScript

You can use the update_trigger function

tell application "BetterTouchTool"
    update_trigger "2F34005D-4537-464D-94E9-A7F42DA39DF1" json "{\"BTTEnabled2\" : 0}"
end tell

For Touch Bar items the property is called BTTEnabled2, for most other trigger types it's BTTEnabled (legacy reasons)

3 Likes