Did Apple Script change - upgraded Snow Leopard Mavericks

I used to use below script to toggle sound output (assigned to function key) in Snow Leopard.
Upgraded to Mavericks few weeks ago and wanted to use that script again, but keep on getting error -1728 as displayed hereafter, anyone out there to tell me what I should do to make it work in Mavericks?
Thx,
Laerg1
Here's the full script:
--This script toggles between two audio outputs in the "Sound" pane in "System Preferences.
--USES GUI SCRIPTING - "ENABLE ASSISTIVE DEVICES" OPTION MUST BE CHECKED IN "UNIVERSAL ACCESS" PREFERENCE PANE
--Adapted from script written by Corey Menscher for toggling outputs using Salling Erickson Clicker
tell application "System Preferences"
    activate
end tell
tell application "System Events"
    tell application process "System Preferences"
        set frontmost to true
        click menu item "Sound" of menu "View" of menu bar 1
        if my wait4window("Sound") is false then return false
        tell window "Sound"
            tell tab group 1
                tell radio button "Output"
                    click
                end tell
                (* You can add your own audio output descriptive text, such as "iMic USB Audio", in the next section. *)
                if (selected of row 2 of table 1 of scroll area 1) then
                    set selected of row 1 of table 1 of scroll area 1 to true
                else
                    set selected of row 2 of table 1 of scroll area 1 to true
                end if
            end tell
        end tell
    end tell
end tell
tell application "System Preferences" to quit
on wait4window(this_title)
    tell application "System Events"
        tell process "System Preferences"
            repeat with i from 1 to 60
                if the name of window 1 is this_title then return true
                delay 1
            end repeat
        end tell
    end tell
    return false
end wait4window

Let's double-check the amount of RAM in that machine. Click the Apple logo in the upper left corner & choose About This Mac. In the window that comes up, what's listed for RAM?
That machine will run Snow Leopard very nicely with 2GB of RAM. For it to run Mavericks, I would upgrade it to at least 4GB or more if it can handle it.
If I was in your position, I would run Snow Leopard for a while and see how well it serves you. If you want to upgrade, my  personal opinion would be to go to Mountain Lion, rather than Mavericks, but that is simply because I found that Mavericks slowed one of my machines to a crawl and was not pleased with the performance. Went back to Mountain Lion and it's humming along.
~Lyssa

Similar Messages

  • Has the behavior of 'run script' changed in Snow Leopard?

    These work fine:
    tell application "Safari"
    return URL of front document
    end tell
    tell application "Safari"
    set longURL to URL of front document
    return longURL
    end tell
    This does not:
    set getFrontmostURLCommand to "URL of front document"
    tell application "Safari"
    set longURL to run script getFrontmostURLCommand
    end tell
    return longURL
    Why? It looks like a script interpretation error but I can't figure out what's wrong.
    The error returned is:
    error "Safari got an error: Can’t get URL of document 1." number -1728 from "URL of front document"

    I see. Is there a way to make the application variable? I'm writing a function because getFrontmostURLCommand works with a couple of different browsers and I want it to be run conditionally based on the user's browser. Something like this:
    set defaultBrowser to GetDefaultWebBrowser()
    on GetDefaultWebBrowser()
    set _scpt to "export VERSIONERPERL_PREFER_32BIT=yes; " & -
    "perl -MMac::InternetConfig -le " & -
    "'print +(GetICHelper \"http\")[1]'"
    return do shell script _scpt
    end GetDefaultWebBrowser
    on defaultGetFrontmostURLCommand(defaultBrowserApplication)
    tell application defaultBrowserApplication to set longURL to URL of front document
    end defaultGetFrontmostURLCommand
    on caminoGetFrontmostURLCommand()
    tell application "Camino" to set longURL to URL of current tab of browser window 1
    end caminoGetFrontmostURLCommand
    if defaultBrowser is in {"Safari", "WebKit", "Opera"} then
    defaultGetFrontmostURLCommand(defaultBrowser)
    else if defaultBrowser is "Camino" then
    caminoGetFrontmostURLCommand()
    end if
    set the clipboard to longURL

  • Will Apple continue to update &/or upgrade Snow Leopard?

    After Lion, will Apple continue to update &/or upgrade Snow Leopard?

    Sorry, speculation is outside the T&Cs of this forum. (but I doubt it apart from security updates).

  • Why am i having problems since changing from snow leopard loading maverick

    why am i having problems since changing from snow leopard downloading maverick

    Yes you solved your own question, use printer handles color, whcih shodul have been the default. If you do want to experiment with Photohsop manages color, try the CMYK profiles, and send a cmyk file. Only exception is if you print to one of the few RGB printers like a lambda.

  • Upgrade snow leopard

    HI a friend of mine had snow leopard since she had her MBP 13" from new, and hasnt bothered to upgrade.
    she thinks she will now upgrade to Lion, but is this still available ? and from where ?
    otherwise would she be able to jump straight upto mavericks for free ?
    thanks if you can help
    tim

    She must upgrade Snow Leopard to 10.6.8 to access the Mac App Store: have her download and install this updater Mac OS X 10.6.8 Update Combo v1.1.
    Upgrading from Snow Leopard to Lion or Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8, Lion, or Mountain Lion installed. Purchase and download Mavericks (Free) from the App Store. Sign in using your Apple ID. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mavericks- System Requirements
           Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • I have upgraded Snow Leopard with Combo 10.6.8, the supplemental update and fixed permissions, but still can't open app store to upgrade to Mountain Lion. I am on the Cayman Islands. Thanks for the help!

    I have upgraded Snow Leopard with Combo 10.6.8, the supplemental update and fixed permissions, but still can't open app store to upgrade to Mountain Lion. I am on the Cayman Islands. Thanks for the help!

    Don't be afraid to bump this topic. There's also an App Store forum where you might repost this question, but give some of these details in your post.  I'd rephrase the topic to something like "Can't use App Store to upgrade." (Instead of can't "open".) Then give the details.
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store

  • How can I save my keepsake photo albums as PDFs in my album folder. Since I changed from Snow Leopard to Lion last year I have't been able to do this.

    How can I save my keepsake photo albums as PDFs in my album folder. Since I changed from Snow Leopard to Lion last year I have't been able to do this.

    preview it using this method -http://support.apple.com/kb/HT1040 - and save the resulting PDF
    Is this what you are doing?Your description does not sound like you are
    LN

  • How to have Snow Leopard, Mavericks with built-in recovery, and Windows 7 (Bootcamp) on my iMac (Intel)?

    I would like to have Snow Leopard, Mavericks with built-in recovery, and Windows 7 (Bootcamp) on my iMac (Intel).  Is this possible?  If so, how?  Currently, I have Snow Leopard and Windows 7 (Bootcamp) running on my iMac.  I have enough disk space to split my Snow Leopard partition.  I have read that if I split my Snow Leopard partition, clone my Snow Leopard partition to the new partition, and boot to the new partition, that I may have problems with the Maverick's upgrade because it may not be able to create the recovery parition, or that it may erase the Windows partition, or that it may mess up the Windows boot process.

    Simplest is to install Mavs on an ext HD, using FW or TB. I don't do windoze, so can't advise about the Boot Camp and multiple volumes issue. Since there's no Boot Camp, I have four volumes running SL through Mavs.

  • How to install upgrade snow leopard in macbook pro?

    I bought a macbook pro 2011 2.2 ghz quad core i7 and would like to install snow leopard in one partition to run older software. I had the full version of os leopard, but can't install in the new macbook pro to upgrade to snow leopard. I can't upgrade snow leopard in my power G5 either because it needs intel cpu. Is there away to upgrade leopard to snow leopard in macbook pro 2011? I have not bought the snow leopard upgrade yet. Thank for your help.

    See the bottom of this user tip to determine if Snow Leopard can be installed on your MacBook Pro:
    https://discussions.apple.com/docs/DOC-2455
    If it can, you'll need to find out the version of Snow Leopard installer that was available at the time that machine was released based on the age of the machine.
    Snow Leopard releases are here:
    10.6.6 on January 6, 2011
    10.6.7 on May 4, 2011
    10.6.8 on June 23, 2011

  • How do I upgrade Snow Leopard to Lion? I have installedOS X 10.6.8 Update Combo v1.1

    How do I upgrade Snow Leopard to Lion? I have installed OS X 10.6.8 Update Combo v1.1
    I have another machine that already has Lion on it and I want them both to have the same OS version. 

    Not the iTunes App Store, but under the Apple
    icon at top left>Appstore, likely only 10.8/Mountain Lion will be found, if you don't want that & want Lion, you have to call Apple & get a key for Lion download.
    Call Apple Sales...in the US: 1-800-MY-APPLE. Or Support... 1-800-275-2273
    Other countries...
    http://support.apple.com/kb/HE57
    Do make a copy of the Installer before running it, like baltwo points out.

  • Upgrading Snow Leopard to 10.6.2

    I have downloaded from Apple the latest version of Snow leopard 10.6.2.I am trying to upgrade Snow leopard since about a month.. Every time I attempt it the Sound disappears. I am really fedup. Local Apple support desk is just useless. They have absolutely no idea what is happening. I called Apple care and they suggested that I move some files in ~/Library on to the desktop and try..Nothing has happened. All I am doing is wasting my time. I have to revert back to 10.6 by using the CD I bought. Apple care support must have some really trained staff if they want to make a dent in the Indian market.. which unfortunately is not the case..
    Can anyone help me in this problem?? Thanks in anticipation

    Create a new User go to System Preferences >> Accounts >> "+" (make it an admin acct) and test the apps in this new account, if they work the problem is isolated to your User and not systemwide.
    If the issue is limited to your user account try starting up Safe Mode (It will take more time to startup in Safe Mode because it runs a directory check.)
    If your apps functions correctly that way, go to System Preferences >> Accounts >> Login Items, and remove them. Boot normally and test. If not go to ~(yourHome)/Library/Contextual Menu Items and move whatever is there to the desktop. Then do the same with /Library/Contextual Menu Items. Lastly, try moving ~(yourHome)/Library/Fonts to your desktop and restarting.
    Log out/in or restart, if that sorts it start putting items back one at a time until you find the culprit.
    If the issue is systemwide then, you may be able to repair this with the The 10.6.2 Combo Update This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
    Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
    Let us know.
    -mj

  • If i upgrade  Snow Leopard  to lion, all information will be removed? from hard disk ?, if i upgrade  Snow Leopard  to lion, all informatio will be removed from hard disk ?

    if i upgrade  Snow Leopard  to lion, all information will be removed? from hard disk ?, if i upgrade  Snow Leopard  to lion, all informatio will be removed from hard disk ?

    John Hammer said it best -- backup first and always. That's why Time Machine and periodic clones of your boot drive to an external disk are so valuable.
    That said – the Lion upgrade will retain all user data, files, settings, mail, and preferences. Mind you that a few settings and their location have changed.
    Before you actually use Lion, may I recommend spending the first evening looking at every single preference panel in System Preferences.  Many of the user interface choices can be reverted back to mimic Snow Leopard if you choose.
    Relax and enjoy Lion – it is amazing.  Please holler if we can help further.

  • Script Editor in Snow Leopard painfully slow after adding apps to Library

    I have four different Macs that I use from time to time, and on each of them I notice a constant: adding more items to AppleScript Editor's Library window slows performance of mundane operations (opening a dictionary, switching between Library window and editor window, scrolling in the Library window, etc).
    In Leopard, I noticed little to know latency in opening a dictionary in Script Editor, but Snow Leopard's AppleScript Editor kills my productivity by making me wait on it with most UI interactions with the Library window.

    Hello
    I read another post of yours:
    Topic : Issue with applescript and installer scripts
    http://discussions.apple.com/thread.jspa?threadID=2143147
    It seems that the installer is calling osascript which is run in 64-bit mode under OSX 10.6 whereas XSLT Tools.osax invoked in the script is in 32-bit mode only.
    Until the osax becomes 64-bit capable, you may try setting /usr/bin/osascript to run in 32-bit mode. Perhaps by setting an option in Get Info window in Finder as explained in the AppleScript Release Notes listed earlier. (?)
    I'm not sure but if Finder cannot do it for commands, you'd need to replace 'osascript' with 'arch -i386 osascript' in the installer script (if it's editable) or let /usr/bin/osascript be wrapped via arch(1) so that it is run in 32-bit mode.
    cf.
    http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/m an1/arch.1.html
    Good luck,
    H

  • Help! Upgraded Snow Leopard now I can't even log in

    Just upgraded Snow Leopard(I think it was the update from 10.6 -> 10.6.2) on my Macbook pro via the software updater. At the end of the installation I got a message saying that there was an error and the update didn't install correctly. I restarted the mac normally and got a log in screen (which I never had previously). I enter my password correctly and then get a blue screen for a few seconds before it brings up the login page again. I can't find a way around this. I know I have entered the password correctly because the login screen doesn't shake.

    You have a hosed installation. Step one is to try to boot into safe mode. Details in http://support.apple.com/kb/HT1564 and http://support.apple.com/kb/HT1455 If able, then download the 10.6.2 COMBO update and reinstall it. Hopefully, that will fix the issues. If not, boot with your SL install disc and reinstall 10.6.0. Alternatively, restore the bootable backup/clone or Time Machine backup of your previous installation. See these for details:
    http://www.macmaps.com/upgradefaq.html
    http://www.macmaps.com/backup.html
    http://www.thexlab.com/faqs/installswupdates.html
    http://www.thexlab.com/faqs/backuprecovery.html

  • Can I upgrade Snow Leopard to Lion from a backup system?

    Hi,
    This is a bit of a roundabout question so let me establish what's going on:
    -I just got a new Mac Pro 6-core a few days ago, which arrived with Lion installed.
    -I backed up the fresh Lion system to an external drive and downgraded to Snow Leopard to retain compatibility with certain apps.
    -I imaginge somewhere down the line I will have to follow suit and upgrade to Lion/Mountain Lion, so....
    Is there ANY way I could use my backup of the fresh Lion system to upgrade my Snow Leopard (if need be) to prevent me having to purchase Lion to upgrade Snow Leopard instead?
    Thanks for your help!
    Andrew

    Is there ANY way I could use my backup of the fresh Lion system to upgrade my Snow Leopard (if need be) to prevent me having to purchase Lion to upgrade Snow Leopard instead?
    Aside from the fact that it will probably not work, the point is that your license for the preinstalled Lion is only good for one machine. If you want it on any other machine, you will need to buy it. Why don't you just wait until you want to install Mountain Lion - if the terms are the same as they were for Lion,  it'll cost you $20 to update all your machines.

Maybe you are looking for