Hi, I found in this thread how to set a variable with AppleScript: HELP: Conditional Activation Groups with Variables
The resulting code was basically as described on that page, except for:
let appleScript = ` tell application "BetterTouchTool" to set_string_variable "customVariable1" to "asdf" `;
Unfortunately this does not work. What am I doing wrong? Plus - is there a way to do it without AppleScript nested in JS?