Skip to content

Instantly share code, notes, and snippets.

View iamnaran's full-sized avatar
🐧
git gitlich

Narayan Panthi iamnaran

🐧
git gitlich
View GitHub Profile
@askedrelic
askedrelic / gist:897652
Created April 1, 2011 02:50
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