Created
April 1, 2011 02:50
-
-
Save askedrelic/897652 to your computer and use it in GitHub Desktop.
toggle audio source on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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