I wrote a quick shell script to toggle my Audio Output device and I'm using a Trigger to quickly run the script. I initially had this setup as a Automator service but for some reason services never work or run outside of automator.
Here's the code if you're interested. Relies on this binary https://github.com/deweller/switchaudio-osx #! /bin/bash currentOutput="$(/usr/local/bin/SwitchAudioSource -c)" case $currentOutput in "5.1 Channel Audio" ) switchTo="Yeti Stereo Microphone" ;; "Yeti Stereo Microphone" ) switchTo="5.1 Channel Audio" ;; esac /usr/local/bin/SwitchAudioSource -s "$switchTo" osascript -e 'display notification "'"${switchTo//\"/\\\"}"'" with title "Audio Output"' Anyway, the problem is that when I run the shell script, it will open a new quicksilver pane with the content of the output within the first pane as text. So I have to hit escape every time I run the script using quicksilver. Perhaps there's something I need to do in my script to stop this? Any ideas? -- You received this message because you are subscribed to the Google Groups "Quicksilver" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/blacktree-quicksilver. For more options, visit https://groups.google.com/d/optout.
