Hallo Andreas,
I want to disable my "Repeating or Time based trigger" somehow but didn't find a way...
Would it be possible to add something like below to get it working ?
tell application "BetterTouchTool"
disable_trigger "8834005D-4537-464D-94E9-A7F42DA39DF1"
end tell
tell application "BetterTouchTool"
disable_action "9934005D-4537-464D-94E9-A7F42DA39DF1"
end tell
Thx,
Christian
Apple script and json are not my friends, but they get the job done...
tell application "BetterTouchTool"
# disable Repeated and timebased trigger
update_trigger "the_trigger_UUID" json "{\"BTTEnabled\" : 0, \"BTTEnabled2\" : 0}"
end tell
1 Like
you can even remove the escaped slashes completely!
Thx Andreas,
the script works, the trigger is disabled, but when I run a script to enable the trigger again (=1) the BTT UI shows that as well and also Ctrl-C shows that data is updated/enabled.
but somehow as it is a "Repeated and time based trigger" the actions are not executed after re-enabled it by script ?
They will work again when I go into the BTT UI...
Thx,
Christian
yeah there is no logic implemented to stop them once they have been started, disabling will only take effect after restarting BTT.
I’ll add this