Changing App Sound Output On Mac

06.08.2020by

Hello,


Counter-strike source royal hack. We as a whole have been anticipating this particular crazy The Trail hack download and now it’s at last here. Here’s the specific gathering of The Trail hack cheats we’ve coordinated for the present. Try not to fuss, when shiny new The Trail hacks are presented, you’ll. You are doubtlessly addressing what precisely does one get in our free The Trail hack, so without extra babbling, gives burrow access. The Trail hack device has turned out to be promptly accessible for download free, furthermore we’ve completed a hack The Trail online instrument in case you’re not an admirer of downloads.

I have half of an earphone plugged snapped into my Macbook pro headphone jack. This means that my Macbook Pro (running the latest version of Mountain Lion) thinks that there is a set of earphones plugged in, when in-fact there isn't, meaning that I have no output for sound. When I go to System Preferences -> Sound -> Output, I cannot change the output to internal speakers, as shown below.

Jul 29, 2013  For mac, let's open up the System Preferences window and click on the sound option in the hardware section. Step 5 - Adjust options in Output tab As result the Sound setting window will open up. Apr 21, 2020  Fortunately, this problem is easy to fix. Head over to your System Preferences in the Apple Menu, and look for the Sound icon. Inside the Sound settings, you will see a tab called Output.

May 10, 2019  It’s possible that if you’ve installed an app like that, its driver could be interfering with your Mac’s sound output. Go to System Preferences and choose Sound. Click on the Output tab. If there’s an output option that looks like a software app and it’s selected, that may be why the sound is not working on your Mac. Choose your audio output and input devices in Windows 10 sound settings; Option 3 – More Complicated. Get to the same sound section in Settings manually step by step: Press Win+I to launch the Settings app. Go to the System section; Select Sound in the left pane; Now you can select the audio output device as described in the previous method. The goal of this small AppleScript is to be able to change the sound output device quickly and easily. Without using Accessibility Controls, the process usually involves mousing to the System Preferences, mousing to and clicking on the Sound control, then mousing to and clicking on the desired output.




If anybody has any information on how I can change my sound output to Speakers I would be very grateful, as at the moment I am soundless.


Thanks!

MacBook Pro, OS X Mountain Lion (10.8)

Posted on


An AppleScript to change sound output device 23 comments Create New Account
Click here to return to the 'An AppleScript to change sound output device' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
I wrote a similar Applescript to switch back and forth from my iMic connected headset. All that GUI scripting discovery was hard for this noob!

I ended up not using it because I found SoundSource almost immediately after completing the project. It allows you to switch between multiple input and output devices from the menubar. Don't think there are keyboard shortcuts like you can do with your script, though.

SoundSource rules! And it's free! Rave on, Rogue Amoeba!
---
Doug's AppleScripts for iTunes
http://www.dougscripts.com/itunes/

Indeed. And a more Tiger-compatible version 1.0.5 was just released.

Changing App Sound Output On Mac

Thank you thank you thank you! I Have been looking for this for ages! I am no AppleScripter and need this since I use iCal alarms with AppleScript to control iTunes for a smooth morning wake up. The problem lies in the fact that I use my iMic for audio in my bed room. So I need to change the audio out before heading to bed, not a problem, except for the days I'm gonna have a hardtime waking up the next morning (AKA when I come back home totally drunk ;o). You are a life (well at least job) saver. I will never thank you enough! Kudos!
---
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf

Hmmm I've had problems making this work after all. It was working when I had the prefpane already opened and had the sound Output tab opened, but not from the ground up like it normaly runs in the morning.. As I rely heavily on this script I couldn't afford for it not to work, even if it meant to manually select the output. So I dropped it for a while. But also caused me problems as I tend forget to do the switch (I have a back up 'buzzer' alarm, but it's usually not enough).
I discovered what was missing :
click radio button 'Output' of tab group 1 of window 'Sound'
delay 2

before 'set theRows to every row of table 1 of scroll area 1 of ¬
'. Otherwise the script grabs the items from the Alert sound list instead of the Output list!

---
Free iPods, now in Canada to! Get yours : http://tinyurl.com/75yta
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf

This script is very useful.. Thanks! I've added delay 1 before tell process 'System Preferences' and removed the next delay, it worked better on my Mac. Also, I recommend a boolean check and an else statement to switch among two sound options automatically, try to insert the code below into the repeat loop and change the values between quotes: With AppleScript Utility I can execute these scripts directly from menu bar too.

thanks for this update, if/then works great!
only one problem for me, which I've always had when using this script, hopefully someone who knows a little about applescript can help:
the script works if the last time i closed system preferences, I WAS IN THE OUTPUT TAB.
but if, for example, i went into sound and changed my input, then closed out of system prefs, then ran this script, it wouldn't work. it won't automatically switch over to the output tab if the last tab i used was input or sound effects.
is there anyway to tell the script 'switch to the 'output' tab if not already there'?
thanks all!
brian cometa

Just (almost) what I was looking for. I want to toggle between 2 sound outputs with a keystroke. Also, removed an extraneous line and fixed the problem that the 'Output' pane must be preselected for the script to work.
property speakers : 'Headphones' --ext. speakers are connected to headphone output
property headset : 'Logitech USB Headset'
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

How can I make this script to run System Preferences0010 hidden? I've tried but it will not work because System Preferences will not be in focus, and no menus will be accessible..
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)
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!
I also made a command-line utility, just a cli wrapper around some of SoundSource's code, which I talked the Rogue Amoeba guys into releasing. You can get it here: http://whoshacks.blogspot.com/2009/01/change-audio-devices-via-shell-script.html

---
I was offered a penny for my thoughts, so I gave my two cents.. I got ripped off.

I have a pair of Bluetooth headphones that can act as both a mono and a stereo audio device. In the Sound settings, it's listed twice with the same device name, and under 'Type', one listing says 'Bluetooth Headset' and the other says 'Bluetooth Headphones'. I'd like to use this AppleScript to select the 'Bluetooth Headphones' option, but both options have the exact same device name listed, so it seems this script won't be able to tell which one to choose. Any suggestions on how to get around this?

I get this error when I try both scripts:
System Events got an error:
'System Events got an error: Access for assistive devices is disabled.'
and then it highlights this line:
click menu item 'Sound' of menu 'View' of menu bar 1
i'm using OS X 10.6.2
thanks!

The command-line SwitchAudioSource is great! Thanks! I wanted to alternate between Line-Out and Headphones with the middle click of my Mighty Mouse. So, I saved the following script as an application (it's messy, beware): and then through system prefs assigned the middle click to launch the application. Hope it helps someone.

Forgot to add: I'm using growl to notify the switch. So..you'll need that.

French system example :
tell application 'System Preferences' to activate
tell application 'System Events'
get properties
tell process 'System Preferences'
click menu item 'Son' of menu 'Présentation' of menu bar 1
delay 2
set theRows to every row of table 1 of scroll area 1 of ¬
tab group 1 of window 'son'
click radio button 'Sortie' of tab group 1 of window 'son'
set theOutputs to {} as list
repeat with aRow in theRows
if (value of text field 1 of aRow as text) ¬
is equal to 'Soundflower (2ch)' then
set selected of aRow to true
exit repeat
end if
end repeat
end tell
end tell
tell application 'System Preferences' to quit
Rom hacking tools n64.

I've updated the original script to work with Lion, assuming English. This is a modification of the second script originally posted, that switches directly (without prompting) to the specified output audio device. In my example below, I have it switching to 'Headphones'. I have another script that is identical, but it switches to 'Line Out'. I saved these as applications and then just assigned hot-keys on my ergo keyboard to run these scripts. Very handy!
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'
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 'Headphones' then
set selected of aRow to true
exit repeat
end if
end repeat
end tell
end tell
tell application 'System Preferences' to quit

sorry for being such Mac noob but how did did you create the Automator script? I tried creating a new application, then run Apple Script by pasting in the script you posted. I ran a debug a couple of times and finally got it to complete without errors. Then I saved as an application as you said. Does not seem to work after editing my output source name. Am I missing something? TIA

No Sound Output Mac

So, it looks like you got it working? Basically, I opened up the AppleScript editor app, pasted in the script originally posted, and then made my modifications. When you save it, you can save it various formats. By making it save as an 'Application', I could target it from things like my Microsoft Keyboard's programmable keys app.
Now, as for changing the name, you must pick a name for the audio device exactly as it appears in your System Preferences. Alternatively, you can ALT-click on the sound icon in the menu bar to see the list of available sound devices you could target. If it's not in that list or you spell it wrong, then of course, you cannot use it.

I ended up using AppleScript editior as you say. I gave up an automator. Its probably trying to make it easier, but the AppleScript editor is more simple in my opinion. Yeah I did have to double check the source name. And now it works!
Thanks

I had trouble getting the second script to select my USB sound card but it would select the built in speakers no problem. I opened up System Information and selected USB, turns out the name of my device had a couple spaces on the end of it. I selected the name, copied and pasted it into the script and it worked. Hopefully this helps anyone else having the same issue.

Changing App Sound Output On Mac Windows 10

The second script could be simplified a lot:

Changing App Sound Output On Mac Computer

  • reveal anchor ' of pane id ' reveals a specific tab
  • You don't have to make System Preferences frontmost or visible
  • You could use a single expression to select the UI element to click
Comments are closed.