Skip to content

Instantly share code, notes, and snippets.

@askedrelic
Created April 1, 2011 02:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save askedrelic/897652 to your computer and use it in GitHub Desktop.
Save askedrelic/897652 to your computer and use it in GitHub Desktop.
toggle audio source on OSX
set the currentSource to (do shell script "/Users/askedrelic/bin/SwitchAudioSource -c")
if currentSource is equal to "Built-in Output" then
do shell script "/Users/askedrelic/bin/SwitchAudioSource -s \"Built-in Line Output\""
else
do shell script "/Users/askedrelic/bin/SwitchAudioSource -s \"Built-in Output\""
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment