Hi, I found in this thread how to set a variable with AppleScript: HELP: Conditional Activation Groups with Variables
I've now tried to do the same when using the action "Run Real JavaScript". So far I can't get it to work, also the documentation didn't bring me further.
What's the best way to do it? I would prefer to use JavaScript only, without AppleScript. So far I tried to modify example 1) from here: https://docs.bettertouchtool.net/docs/1106_java_script.html
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?
Thanks already!