(もともとここに掲載http://leafraker.com/2007/09/17/how-to-create-a-quicksilver-trigger/)
AppleScriptを使用して、Quicksilverが最速の方法であることによってトリガーされる2つのソースを切り替えることができます。
property speakers : "Headphones" --ext. speakers are connected to headphone output
property headset : "Line out"
tell application "System Preferences" to activate
tell application "System Events"
get properties
tell process "System Preferences"
click menu item "Sound" of menu "View" of menu bar 1
delay 2
click radio button "Output" of tab group 1 of window "sound"
delay 1
set theRows to every row of table 1 of scroll area 1 of tab group 1 of window "sound"
repeat with aRow in theRows
if selected of aRow then
set curr_output to (value of text field 1 of aRow as text)
if curr_output is speakers then set desired_output to headset
if curr_output is headset then set desired_output to speakers
exit repeat
end if
end repeat
repeat with aRow in theRows
if (value of text field 1 of aRow as text) is desired_output then
set selected of aRow to true
exit repeat
end if
end repeat
end tell
end tell
tell application "System Preferences" to quit
また、SoundSourceのコマンドラインラッパーがあり、applescript / quicksilver / scriptsなどとの統合を容易にします。
http://whoshacks.blogspot.com/2009/01/change-audio-devices-via-shell-script.html
そしてもう一つ試してください:
http://code.google.com/p/switchaudio-osx/downloads/list