I created a Named Trigger: emacsclient which consists very simply with the following settings:
tell application "BetterTouchTool"
trigger_action "{
BTTActionCategory: 0,
BTTPredefinedActionType: 292,
BTTPredefinedActionName: 'Assign or Set Value for Variable',
BTTVariablePersist: '1',
BTTVariableOnlySetIfNotYetDefined: 0,
BTTVariableName: 'emacsclient',
BTTVariableValue: '/Applications/MacPorts/EmacsMac.app/Contents/MacOS/bin/emacsclient -nqe',
BTTEnabled2: 1,
}"
end tell
But when I then try to get that value it fails
tell application "BetterTouchTool"
try
set EC to get_string_variable "emacsclient"
end try
end tell
return EC
The result is missing value
.
As I typed the above it occurred to me that I'd never executed the named trigger. And sure enough if I action it once it is then set.
Did I miss some documentation on this implementation?
Searching here I could not find this information, so sharing here as it might help someone else in the future.