|
|
An AppleScript to change sound output device
The applescript was too slow for me, so here is a command-line utility that I wrote to do this:
http://code.google.com/p/switchaudio-osx/downloads/list (Requires OSX 10.5, I believe)
An AppleScript to change sound output device
Neat! Your c program works like a charm!
I created a QuickSilver trigger that runs a shell script that toggles the audio device using your command.
I put your program in my $HOME/bin catalog. I also have installed the growlnotify program that comes with growl.
I activated quicksilver (my trigger is alt-space) and then pressed "." (dot) to enter text. I then pasted in the script below
Then I pressed tab to choose action, and I chose "Run Command In Shell". This will run the commands that were entered into QS's text buffer.
I activated QS again and pressed command-' (quote) to get the trigger configuration pane. Then I added a trigger by clicking on the plus icon down on the popup window. This lets you choose which command to run, but the default is the one you just ran, so just add it and pick a nice shortcut (I picked control-alt-command a)
QS rocks!
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.33 seconds |
|