I must be missing something here because each and every example function (or custom, for that is) which I tried in my BTT returns missing value
.
I tried the scripting API here https://docs.bettertouchtool.net/docs/1102_apple_script.html
I, for example, created a BTT Button which as action executes an AppleScript:
tell application "BetterTouchTool"
trigger_named "TriggerName"
end tell
I have a trigger named TriggerName
in "Other Triggers" section.
But whenever I run the script or press the BTT button that invokes the script, the result returned is simply missing value
It does not matter which of the script examples at https://docs.bettertouchtool.net/docs/1102_apple_script.html I try, they all fail with the same issue.
My final goal is a BTT Button that (by script) sets a BTT User Variable to show
, so in another widget, I can retrieve that BTT User Variable and if == show
then return a value so to show this second button, otherwise hide it.
But I fail already at the basic scripting.
Anyone can provide me with a working example of how https://docs.bettertouchtool.net/docs/1102_apple_script.html should be used?