I would like to run a simple shell command via hotkeys. So far I've created a service via Automator wich runs the following AppleScript command:
do shell script "/bin/bash -c '/opt/local/bin/cmus-remote -n'"
and does not take any input.
It runs fine when executed from within Automator and also when called from the command line itself, but when I try to execute it as a service -- either via hotkeys or from e.g. Firefox's global menu Firefox->Services --, it fails with an unspecific error.
What do I do wrong?
Thanks in advance!
PS: Hotkey execution works fine if I use Spark, but I'd still like to know where I went wrong.