New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

"Select audio output" applescript?


Post Reply New Thread Subscribe

 
Thread Tools
Sherfick

 
Member Since: May 20, 2011
Posts: 2
Sherfick is on a distinguished road

Sherfick is offline
I'd like a keyboard shortcut that will select the "HDMI" audio output without going through the menus when my mac is connected to my TV. I tried to find a script or something to enter into Quicksilver for this, and this is what I came up with:

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
set theRows to every row of table 1 of scroll area 1 of
tab group 1 of window "sound"
set theOutputs to {} as list
repeat with aRow in theRows
if (value of text field 1 of aRow as text)
is equal to "HDMI" then
set selected of aRow to true
exit repeat
end if
end repeat
end tell
end tell
tell application "System Preferences" to quit

Problem is, I have hardly any clue what this means or how to make a script for it. Also if someone could tell me how to add the script to Quicksilver? I found the actions folder and it's just a bunch of words, do I just paste the script in that folder?

Thanks
QUOTE Thanks
sterrb

 
Member Since: Jan 02, 2012
Posts: 2
sterrb is on a distinguished road

sterrb is offline
You can switch more quickly by holding "option" and clicking the volume control in the menu bar. not quite a keyboard shortcut, but way faster than going through system preferences.
QUOTE Thanks

Post Reply New Thread Subscribe


« Installed xtools followed all recommendations but make still doesn't work | iTunes Applescript copy to NAS »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Summary of all the Audio Apps available for OSX robduckyworth Music, Audio, and Podcasting 35 08-02-2012 10:52 AM
Freeware Audio Application? TechieJustin Music, Audio, and Podcasting 0 05-29-2010 01:26 AM
Safari and Facebook Problems MrTissues OS X - Apps and Games 7 02-26-2009 05:01 PM

All times are GMT -4. The time now is 10:31 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?