I am trying to use the "execute terminal comand" feature... but I am missing info about quoting / escaping, etc.
I have this command that executes fine in a terminal, but if I paste that into the execute terminal command (async) textbox, nothing happens when triggered.
/usr/bin/env cmd=/usr/sbin/networksetup dev=en0 /bin/test "$($cmd -getairportpower $dev|/usr/bin/cut -f4 -d' ')" = "On" && $cmd -setairportpower $dev off || $cmd -setairportpower $dev on
I suppose it's a matter of escaping / quoting ....
.... all depends how the string is executed by BetterTouch.
It would be phantastic to either mention or link the details in BetterTouch when you add the "execute terminal command" action.
And I would really like to avoid pasting the command into a script and execute the script (because I prefer to have this logic within BetterTouch together with my keyboard shortcuts).
As I am new to Bettertouch:
Is there a way to see the error message of the execution attempt logged somewhere?
Thanks a lot in advance for any help / hint!