Automator and sound preferences

Imac Mac OS X (10.4.9)
Is there any way set up an automator script (or Apple script) to change sound preferences. Example, change from Imic output to headphone output, turn off and on Isub. Any help would be appreciated.

Furthermore, I came across this applescript in forums which appears to do switching, it opens the preference panel and selects sound but then stops with the fault.
System Events got an error: NSReceiverEvaluationScriptError: 4
I don't understand the script language yet as I am new to automator and apple script.
i need to switch between imic output(with sub off) and headphone output (with sub on)
Also whats the best place to learn apple script language?
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events"
tell process "System Preferences"
click radio button "Output" of tab group 1 of window "Sound"
repeat until (value of radio button "Output" of tab group 1 of window "Sound") is 1
end repeat
if (selected of row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true then
select row 2 of table 1 of scroll area 1 of tab group 1 of window "Sound"
repeat until (selected of row 2 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true
end repeat
else
select row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound"
repeat until (selected of row 1 of table 1 of scroll area 1 of tab group 1 of window "Sound") is true
end repeat
end if
end tell
quit
end tell
Imac Mac OS X (10.4.9)
Imac Mac OS X (10.4.9)
Imac Mac OS X (10.4.9)

Similar Messages

  • USB-powered Speakers and Sound Preferences

    I have two Mac mini's (one intel, one powerPC) both running the latest version of OS 10.4 and both have USB speakers which I allow the computer to power (rather than a separate external power). On both computers I have the same problem; when I reboot, the sound preferences in System Preferences changes back to the output volume being exactly in the middle, if I adjust the output volume and then reboot, I'm back to the output volume being in the middle, rather than as I set it before the reboot. How can I change the output volume of these USB speakers so that it stays even after a reboot?
    I've never had this problem with externally powered speakers.
    MacMini   Mac OS X (10.4.10)  

    Did this just start with the 10.4.10 update?

  • Shortcut to Sound preferences

    Okay, I know how to make a keyboard shortcut for system preferences in general, but it's not much different than clicking it on the dock. I wanted a shortcut to take me directly to the sound preferences, which seems to be too specific of a command. I tried using "Sound" and "Sound Preferences" and neither of those worked. I just wondered if there was another name I'm not thinking of that would make it work. Otherwise, I'm pretty sure there's just no way of doing this.

    Just to add to what Limnos said above.
    Follow his navigation but rather than making a desktop style short cut just drag the document icon ONTO your dock.
    You will see it change appearance from a document style icon to a speaker cone (You need to drop it to the right hand side of the dock, near trash and other folders files).
    Now when you click on it you are taken directly to the speaker preference pane rather than the general system preferences window.
    This works for all system preferences panels in just the same way.
    I find it especially useful to drop the StartupDisk.prefPane here as it gives me one click access to switching to and forth between differing OSes over Bootcamp similar to the tray icon under windows !

  • Hi i upgrade from lion to mountain lion to day on my mini mac,Since the upgrade i am getting no sound through my HDMI cable which was working fine on lion Checked the midi audio settings and system preferences to out on HDMi nothing no sound whats so ever

    Hi i upgraded from lion to mountain lion to day on my mini mac,Since the upgrade i am no longer getting sound through my HDMI cable which was working fine on lion Checked the midi audio settings and system preferences to out on HDMi nothing no sound whats so ever.Any one any ideas?
    I use a samsung TV for my monitor via HDMI.Tried all the system Audi setting nothing .Head phone and internal speakers are fine.

    Similar issue; Audio was working fine on Lion, now not on Mountain Lion. Have a Macbook Pro early 2011 with AMD Radeon HD 6750M, connected by thunderbolt through a Lacie LBD to a mini-displayport to HDMI adapter (n.b. same problem when not going through the LBD) to a Pioneer VSX 521 AV receiver. For me when I go into audio Midi settings all the volume sliders for the displayport device are greyed out and at zero. But when I click 'configure speakers', it's able to send out the test signals to each speaker. Part of the problem could be that I'm not getting the option to put out 6channel sound, only 2 or 8 channel. Since my system is Dolby 5.1, and I only have 6 speakers, I would have expected the 6ch option to be available. But I imagine there's more to it than that. Elsewhere someone has suggested playing with Remote Interactive over HD on an Onkyo device; I'll see if there's something similar on the Pioneer that can be changed. Any other suggestions welcome.

  • Trying to use headphones to watch a show online...  sound still comes out of the internal speakers, not through my headphones.. i used help, said to go to sound preferences and choose headphones from the output pane, but it doesn't list headphones

    trying to use headphones to watch a show online...  sound still comes out of the internal speakers, not through my headphones.. i used help, said to go to sound preferences and choose headphones from the output pane, but it doesn't list headphones

    trying to do this on a macbook pro...please help

  • I recently used the computer for I player over the TV, but when removing the external speakers the internal speaker appears to have stopped working and when going on to system preferences and sound I am only given the option of digital out put. Help

    I recently used the computer for I player over the TV, but when removing the external speakers the internal speaker appears to have stopped working and when going on to system preferences and sound I am only given the option of digital out put. Help

    Do you see a red light shining in the headphone port?

  • Sound preferences + automator

    Hello,
    I would like to have my bluetooth headset activated and used as line in & out as soon as I use skype. For the rest, I would like to keep it with the build in lines.... Is there a chance to do so? I am new to the automator and a little overwhelmed by all this info I read so far in other threads. Please help me!
    Thanks!

    not solved

  • Automator - Toggle Sound Output Device

    Hi.
    I have an audio interface with headphone output, and the internal imac speakers. I like to toggle between them very often Right now I have to open system prefs, click on sound, and select the sound output. This is a pain. Ideally, I would like a keyboard shortcut t do this for me, but I can't find a way to do it. I had a play with automator and thought I'd solved it by getting it to record me changing sound output - but it didn't work.
    Can anyone give me some relatively simple instructions on how to make this task feasible?

    edit: (i know it's a 3 year old thread)
    not sure why you would say that automator can't do it. if you can do it with a gui, there is almost certainly a way to do it using automator.  this is what i use for os x to switch to bluetooth (using ifttt to trigger a certain playlist when i'm almost home).
    tell application "System Preferences" to set current pane to pane id "com.apple.preference.sound"
    tell application "System Events"
        tell process "System Preferences"
            tell window "Sound"
                click (radio button 2 of tab group 1)
                delay 0.0
                select row 2 of first table of first scroll area of first tab group
                delay 0.0
            end tell
        end tell
    end tell
    tell application "System Preferences" to quit

  • Why does my internal speakers no longer show up in my sound preferences?

    In February, I updated my MBP 15" to 10.7.3. After restarting my system, the internal speakers were no longer listed in my available outputs under my sound preferences. I wasted an hour of my time talking to phone support only to hear the same stuff I had found online to try to troubleshoot the problem. Finally they told me to go to the Genius Bar. I went to my local Apple store where they proceded to look at it for about an hour and in the end told me the way to fix it would be to just wipe the harddrive and reinstall OS X. I couldn't afford to do that at the time due to needing the computer for grad school and chose to wait till after school let out to do this. Now I have wiped the harddrive twice and reinstalled and STILL don't have sound.
    Does anyone have any ideas of what I can do to try to fix this?

    It's a longshot, but you could try this:
    Resetting your Mac's PRAM and NVRAM

  • Can't access Desktop and Screensaver Preferences

    Hello,
    I have had my macbook for 3 months and absolutely love it. I just have one problem which has occurred over the last couple or days.
    When I go into the System Preferences folder I cannot access the Desktop and Screensaver Preferences. And instead of the regular icon for this, there is the System Preferences icon and the letters are jumbled below the icon.
    I've searched through this forum to find a solution and have followed the following steps, to no avail:
    I've checked for software update but my computer is updated
    Have used Disk Repair using startup disk, but no errors found
    Downloaded and ran Yasu, to clear check and clear caches
    Deleted apple.com.screensaver.xxx.plist - in Home/library/Preferences/Byhost
    Finally, I attempted to delete com.apple.preferencepanes.cache, and also com.apple.preferencepanes.searchindex.cache, but they always reappear in the Cache folder, no matter if I move them to desktop and delete them, or just put them straight in the Trash.
    This all sounds really longwinded, sorry if it's unnecessarily long. I hope someone is able to help!
    Cheers.
    Tokyoanna
    Macbook   Mac OS X (10.4.8)  

    Read this...
    http://www.macsimumnews.com/index.php/archive/macosgdiagnosing_a_system_preferencesproblem
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 

  • Sound Preferences: switches from Internal Speakers to Digital Out

    I've been having this problem recently. I sent the computer off to Apple a few weeks ago and it helped for a while, but no longer.
    My computer has a problem with it's sound output jack or something. Without inserting anything into the plug, the Sound will change for "Internal Speakers" to "Digital Out" and to "Built-in Output" in the Sound Preferences Panel.
    Any suggestions?
    Message was edited by: davidszcz

    I have a 4 month old macbook and experiencing the same problem. Just realized it after installing itunes 8 and since then having a stuttering audio playback problem too. When i plug my headphones into the audiojack the sound switches from headphones to speakers and back as well as itunes playing tracks in a stop and go mode. I repaired the rights several times, installed quicktime 7.5.5 again, reinstalled itunes 8 and for sure running the latest leopard version 10.5.5.
    Also thought it could be a hardware problem but after reading this it seems more software related.
    Any idea?

  • Music and sounds folders not appearing under "music and sounds" tab for approx 5 min after launch

    So every time I launch fcpx, under the "music and sounds" tab, all that is appearing is my iTunes folder, with the other folders (iLife sounds, FCP sound effects, etc) not appearing for about 5 min or so...anyone else experiencing this? Is there a fix?

    Nothing ever shows up under the "Music and Sounds" tab for me. I can wait an hour and nothing "appears." The dropdown menu is blank and can never be used to select anything: It remains blank.
    I've deleted preferences, rebooted, logged-in as a different user and reinstalled the application. None of that has made the "Music and Sound" section work.
    If I drag a folder to the top area (after pulling down the gray bar) the icon changes to show a green plus sign and the top area is outlined with green. After dropping the folder nothing happens; it does not appear in the list. I've tried several different folders from iTunes and other locations, all to no avail.

  • Sound Preferences don't work

    I recently had my hard drive replaced by Apple Care due to a crash. I received my MAC and it's running MAC OS 10.4.9.
    All of my sound alerts are not happening. I tried resetting my sound preferences and it doesn't work. I ran Disk Utility and repaired permissions.
    Does anyone know of any other things I should try to fix this?
    Thank you.

    It corrected itself when i reinstalled the operating system

  • Sound Preferences Problem

    My USB Headset shows up twice for both the input and output in the Sound Preferences panel.
    If I disconnect it from my hub, one entry disappears from the list but the other one remains.
    It works for most things when I select the right one from the list, but I use the speech recognition program iListen and I can't get that program to work no matter which one I choose using the 'Set Up My microphone' menu command.
    I have created another user to see if that would fix the problem but that didn't work either.
    I have looked for any prefs files that I could delete and can't find anything.
    Is there a program that will let you remove items from the Sound prefs pane?
    Does anybody have any suggestions on how to fix this problem?
    I am handicapped and I rely on that program a lot. Thanks

    I thought those prefs were in the following file, but if another user didn't change it at all then must not be...
    Users/nnnn/Library/Preferences/ByHost/com.GlobalPreferences.(12 digit number).plist
    So, I'm gonna guess dragging this file to the Desktop & rebooting...
    /Library/Preferences/com.GlobalPreferences.plist

  • Changing OSX default volume setting to a higher level in sound preferences

    When I change the default volume setting to a higher level in sound preferences within OSX, it is back at the lower level at the next listening session the following time I use iTunes on my Mac Mini. Within System Preferences there is a section that lets you "choose a device for sound output" but the only choice I have is "line-out" and under the "port" heading there is only "built-in output"--no other choices are shown. I have external speakers attached which I like to use for listening to music as I work. What is the problem? Why won't the higher volume I set remain? Also, shouldn't more than one choice be shown for sound output?

    This sounds like the problem that I'm experiencing and <a href-"http://discussions.apple.com/message.jspa?messageID=2694517#2694517">aske d about a couple of days ago. The sound level resets to 50% after shutdown.
    I tried setting the levels in Audio MIDI Set Up as suggested above, but that hasn't changed anything.
    In answer to B_web, I am running my external speakers through the headphone jack.
    So, any other suggestions?

Maybe you are looking for

  • Can you help me solve ical synch problem going from iPhone to MacBook Air?

    My iPhone calendar contains a lot of important meetings. I am about to migrate from my 3GS to iPhone 5 but since I cannot seem to properly synchronize my iCal from my iPhone to to my MacBook Air, i.e. I cannot see any events from my iPhone in my Mac'

  • Error while generating proxy

    Hi everyone , I am trying to create client proxy in SAP(directly calling webservice, not via XI) but getting this error: (WSDL is after error) <?xml version="1.0" encoding="utf-8" ?> - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> -

  • File association (to bridge not from it!)

    I know this is very possible a windows question, rather than a bridge one BUT when I installed CS4 I vaguely remember getting the option of specifying which filetypes on windows (7) were assocaited with what program.  I associate all my adobe file ty

  • How Do I Convert LV7.1 Datalog Files to LV8 Format?

    I have several LabVIEW 7.1 datalog files that generate Error 71 (File data type conflict) when I try to open them in LabVIEW 8 using the new Open/Create/Replace Datalog vi with my original typedef constants wired to the record type terminal.  Likewis

  • Cannot access gmail

    Installed FF today.When trying to log in to my gmail,the login page comes back,enter password again and so on. I never had this problem in IE and if it is not put right quickly,I give up FF. I tried to reset my password,that did not work. It is aprob