I've been trying to use a QS trigger to launch the following shell script. When run directly from the terminal everything works as intended, but for some reason under QS it fails to call up a growl notification. The trigger does activate the script's main task (which is to toggle the active audio output device), however. Here's the script, which I've paired with the "run command in shell" action: audio=$HOME/bin/SwitchAudioSource; $audio -s "$(basename "$($audio -a - t output | egrep -v "$($audio -c)")" " (output)")" | /usr/bin/ growlnotify -a "System Preferences" -m "Output device has been switched." -t "Audio"
I'm not that great at the command line, so I'm probably missing something obvious. Any ideas?
