MrBurns
September 12, 2025, 9:26am
1
im trying to configure a trigger, which starts an app, but asks if the app is already running.
Therefore I implemented an if-condition asking for "running_processes", but it doesn't recognize any running app.
Any input produces FALSE
tell application "BetterTouchTool"
get_string_variable "runningProcesses"
end tell
dosen output anything
MrBurns:
running_processes
This is how it needs to be spelled in your script as well, not runningProcesses
tell application "BetterTouchTool" to get_string_variable "running_processes"
MrBurns
September 12, 2025, 12:20pm
3
it doesn't work either.
even Finder or BTT aren't recognized as running processes in the if-condition
Then your if condition is wrong, can you post it?
Possibly have a look at the example and discussion here How can I reliably detect if a specific app (with a short name) is running for automation purposes?
i tested it with Finder (“inder” thus ignoring the capital letter), but it is “false”. I assume it should be true
(“Finder” doesnt work either)
What does this script return if you run it e.g. from script editor?
tell application "BetterTouchTool" to get_string_variable "running_processes"
that is very weird. I can't think of anything that would prevent BTT from getting the processes.
Did you maybe have a script in the past that tried to set this variable? (BTT currently doesn't protect these internal variables so if a user script overrides them it will return the value set by the script)
If the variable is shown here, you can hit the trash icon to get rid of the user value, afterwards it will return to the default BTT behavior:
thank you for your help
I guess not…
I just tried it with my admin account on the same Mac mini and there BTT can detect running processes. Maybe that’s the problem?
On my MacBook with logged in admin BTT can also detect running processes