AppleScript Error 10810

How do I fix the following?
root# /usr/bin/osascript /Users/me/Documents/balance_volume.scpt
/Users/josh/Documents/balance_volume2.scpt: execution error: An error of type -10810 has occurred. (-10810)
My iMac volume balance constantly sets itself to a new random position so I created the following AppleScript:
tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.sound"
    reveal (first anchor of current pane whose name is "output")
end tell
tell application "System Events"
    launch
    tell process "System Preferences" to tell slider 1 of group 1 of tab group 1 of window 1 to set value to 0.5 --center balance
    -- tell process "System Preferences" to set value of slider 1 of group 1 of window "Sound" to 0 --maximize volume
    quit application "System Preferences"
end tell
The script works everytime when run from AppleScript Editor.  But if I save and try to run from the command line, it runs sometimes, but not others.  Eventually I want to put in crontab:
* 20 * * * /usr/bin/osascript /Users/me/Documents/balance_volume.scpt
I've read about "compiling" or saving as an application the scpt file but not sure how to do this.
Thank you.

Then I would try a minimalist version of the script. Who knows?
tell application "System Preferences"
    reveal (anchor 1 of pane "com.apple.preference.sound" whose name is "output")
    tell application "System Events" to tell process "System Preferences" to tell slider 1 of group 1 of tab group 1 of window 1 to set value to 0.5 --center balance
    quit
end tell

Similar Messages

  • Error -10810 when launching applications

    Hi, I have a Core 2 Duo LED screen MacBook Pro that I upgraded to Leopard. I did a clean install, and then imported my settings and documents using the migration assistant.
    When I try to launch certain applicatons, I get the following error message: "The application "(Application Name)" cannot be launched. -10810".
    The (Application Name) is the name of the application that cannot be launched. So far, it's happened with the following applications: Quicktime, Parallels Desktop, Google Earth, Slingplayer, Photoshop CS3, Safari, Quicksilver, and more. If I restart, then this problem stops with some applications, but keeps on going with others. There seems to be no pattern with this error, it just happens sometimes, and then doesn't. Can anyone help?

    In my machine, I have traced the problem to a bug in Microsoft IntelliPoint Mouse Driver Software Version 6.0 (v.147).
    The problem manifests itself when the wireless mouse battery is running low. When this happens, the Mouse Driver causes a dialog box to appear on the screen letting you know that your mouse is critically low. It has a way of dismissing the alert or postponing it until later.
    The problem is that neither of these function properly. If I postpone or dismiss, the Driver software immediately spawns a new dialog, over and over and over.
    I like to run my batteries down completely, so I moved the alert into the background. This is when things started to act up and I started to get the 10810 messages.
    When I replaced my batteries in the mouse, the dialog boxes stoppped and the error 10810 stopped.

  • Trying to batch print to postscript and getting AppleScript Error!

    Here is the script as copied from Script Editor:
    -- make a variable for the print settings to use:
    set thPrintSettings to "Publishers PDF standard"
    global thPrintSettings
    -- initially, we'll allow for picking destinations at script start
    set targetFolder to choose folder with prompt "Location for PDF files..."
    global targetFolder
    set varBasename to "CTB"
    tell application "Adobe InDesign CS3"
    -- Environment test: We want 1 book, no documents open:
    try
    get document 1
    display dialog "Please run this script without any documents open (except one Book)" buttons "OK" default button 1
    return
    on error
    -- we must be good to go, no documents open
    end try
    try
    set thBook to book 1
    on error
    display dialog "Please open an InDesign Book to use this script" buttons "OK" default button 1
    end try
    if modified of thBook then
    display dialog "This Book has been modified. Do you want to continue running the script?" buttons {"Cancel", "Yes"} default button 1
    end if
    tell thBook
    set countOfThBook to (count of book contents)
    set thContentsList to (full name of book contents) as list
    end tell
    -- return {countOfThBook, thContentsList}
    set user interaction level of script preferences to never interact -- avoid any dialogs (for printing or saving)
    set n to 0
    repeat with j from 1 to countOfThBook -- loop through book's documents
    set thDoc to item j of thContentsList
    open thDoc
    tell active document
    repeat with c from 1 to (count of every ink)
    tell ink c
    set convert to process to true
    end tell
    end repeat
    set myName to varBasename
    repeat with i from 1 to count of pages -- loop through book's pages
    set y to name of page i
    set n to n + 1
    tell print preferences
    set page range to y --page range sets which page(s) to print
    set active printer preset to thPrintSettings
    set print file to alias ("" & targetFolder & myName & "_" & n & ".ps")
    end tell
    print --without print dialog
    end repeat
    close saving no
    end tell
    end repeat
    end tell
    Every time I try to run it I get the following error:
    AppleScript Error
    Adobe InDesign CS3 got an error: Invalid parameter.
    Help!!!

    On 2/12/08 1:52 AM, "Jaime C. Starkey" <[email protected]> wrote:<br /><br />> I replaced the "set active printer preset" line to "set thPrintSettings to<br />> printer preset "CTB"<br /><br />No -- you should leave the "set active printer preset to thPrintSettings"<br />line as it was. The line you need to change is "set thPrintSettings to<br />"Publishers PDF standard"" -- that's where you need to insert "printer<br />preset".<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

  • ERROR -10810

    Hello,
    without any warning, I am being told at random times by my computer: "Impossible to lauch Application (Error -10810)". After a while applications stop working and the computer freezes. Then, I need to restart the computer and applications work for a while until the same problem happens again.
    I've tried to use Disk Utility and use the Repair Disk Authorizations button, but the problem still exists.
    I need help from someone, thank you.

    Open the Activity Monitor in the /Applications/Utilities/ folder and keep an eye on what it reports as you use the computer; if that error message appears, check to see if one process appears repeatedly in the list.
    That error message means that there are 100 or more processes running; when the number of running processes is at or above this limit, only root can create any additional ones.
    (20135)

  • Applescript error 600

    I keep getting an Applescript error -600.........application isn't running.  When I click on "ok" Cocktail opens and runs pilot.  The script is then gone but eventually comes back.  Is there any way to stop this error from appearing?
    Thanks for helping.
    Ron

    That error was reported as a Cocktail error in pre- 6.3 versions. (See: fixed problems with a -600 error)
    Try uninstalling Cocktail to see if Cocktail is causing the error.

  • Error 10810 occurs when running with SCXI

    Iam running an LV example program in RT(PXI-8176,Daq Device PXI-6052E)and i have a SCXI 1520,seven 1125 & one 1102b modules in my SCXI Chassis.When i run example acquisition program iam able to acquire from module 1 & 2(i.e 1520 & one 1125)but from my 3rd module to the rest of modules i'm not able to acquire.I get an error saying that "Error-10810 unexpected error in Group config" what could be the reason?

    Hello,
    The problem is probably related to a conflict between the driver and the controlling module in your SCXI chassis. I have heard of this problem before when trying to acquire data from an SCXI-1125 that is slot 3 or higher of a SCXI chassis running in RT, and it resulted with that exact error.
    There was no fix such as upgrading to a newer version of the driver or anything like that. Rather, the problem was shown to occur only when the SCXI-1125 module was used to control the SCXI chassis. If they used any module other than the 1125 to control the chassis, then there was no problem.
    My suggestions to you are to try this exact thing - do not use an SCXI-1125 module as the controller for your chassis. If this doesn't happen to be the case, or this does not
    work out for you, then please post back to this discussion so we might be able to solve this problem. If you happen to post back, please list some more information such as driver version, OS, SCXI chassis, controlling module/slot, etc.
    Best of luck.
    Jared A

  • How to solve error 10810?

    Error 10810
    Hello, I have a macbook pro 2009.
    I got some messages " your startup disk is almost full"
    Now I got a blue screen with the message "error 10810 has occured"
    I can't work with my mac.
    Please help me
    Thanks

    Hello nrazel,
    I recommend this article named Resolve startup issues and perform disk maintenance with Disk Utility and fsck found herehttp://support.apple.com/kb/TS1417
    Resolution
    Try a Safe Boot
    If you're using Mac OS X 10.2 or later, you can start up your computer in Safe Mode, which includes an automatic disk check and repair. If you're using Mac OS X 10.1.5 or earlier, skip to the next section. A Safe Boot, which starts up your computer into Safe Mode, may allow you to start up your computer successfully using a reduced version of the system software. To do this, follow these steps:
    Start up in Safe Mode.
    After the system has fully started up, restart your computer again normally.
    If the computer successfully restarts, you do not need to do any more troubleshooting. If the issue persists, try Disk Utility.
    Try Disk Utility
    Start from the Recovery System or Internet Recovery (OS X Lion or Mountain Lion).
    If your computer shipped with a Mac OS X Install disc, insert the installation disc, and restart the computer while holding the C key.
    If using a Recovery partition or Internet Recovery (OS X Lion and later): When your computer finishes starting up, choose Disk Utility from the Utilities window.
    If using an installation disc: Choose Disk Utility from the Installer menu.
    Important: If you started from an installation disc, do not click Continue in the first screen of the Installer. If you do, you must start from the disc again to access Disk Utility.
    Click the First Aid tab.
    Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    Select your OS X volume.
    Click Repair. Disk Utility checks and repairs the disk.
    Tip: With Mac OS X v10.6 and earlier, always start up your computer from an Install or Restore disc when using Disk Utility to verify or repair your startup volume. Otherwise, you might see some disk error messages.
    All the best,
    Sterling

  • Finder not opening/ Error 10810

    Hey!
    I have recently update Mac OS X to 10.6.6 from 10.6.2. It's been running great, but after quitting an app from the Mac App store, Finder just did not appear. The toolbar on the top of the screen was not appearing, and when clicked the Finder icon on the dock, it gave a message: "Finder.app cannot open -10810". I had no other choice than to Force Shut down my computer my holding the power button on my computer. After restarting, I was able to open Safari, but Finder would still not open. I force shut down my machine again and the sane problem happened again! I read a couple of posts on the discussion board and tried to turn it off (not the way I would like to turn off my beloved iMac :P) and disconnected my external hard drive. I turned it on and it's working fine...
    HELP PLEASE!
    Christopher

    See Finder Error -10810 in Snow Leopard causing problems and:
    The following have been suggested as possible solutions:
    1. If you're using 10.3, you need to get rid of the following:
    /Library/Caches/com.apple.LaunchServices.6B.csstore
    ~/Library/Preferences/com.apple.LaunchServices.plist
    (where '~' means your Home directory, i.e. '/Users/yourname')
    2. If you have Virex or other virus software installed, try uninstalling it. Be sure to use uninstallers that come with the software because simply deleting the application does not fully uninstall most virus software.
    After deleting the referenced files above you will want to do a restart. Then use Disk Utility in your Utilities folder to repair permissions.
    The problem can also be caused by USB drives connected to the computer and/or third-party modifications to one or both of the USB drivers in the /System/Library/Extensions/ folders. If you have any third-party USB drivers installed try booting into safe mode to see if that eliminates the error.
    In general restarting the computer should resolve the error, but if it's being caused by other software installed then the error will recur eventually.

  • I am unable to open my Finder. error -10810 appears saying "The application Finder can't be opened". Any suggestions, I'm stumped! {I'm on a new iMac 10.6.8} thank you!

    I am unable to open my Finder. error -10810 appears saying "The application Finder can't be opened". Any suggestions, I'm stumped! {I'm on a new iMac 10.6.8} thank you!

    Hi,
    have a look here http://reviews.cnet.com/8301-13727_7-10365239-263.html for possible solutions.
    Hope it helps
    Stefan

  • AppleScript error -609 in Automator workflow

    I created an AppleScript on one computer and incorporated it in an Automator workflow. The script works perfectly well stand-alone or as part of the workflow.
    Then I copied both files to a headless computer via VNC. I adjusted the workflow to look at the new location of the script, and the script itself to look at the new location of the file it's processing. Now, on that second computer, the script works perfectly well by itself, but I get AppleScript error -609 Connection Is Invalid if it's run from the workflow.
    For testing purposes I reduced the script to its simplest expression:
    tell application "Finder"
    end tell
    and it's still generating the error.
    Strangely, from the workflow the full script does what's it's supposed to, but the workflow stops because of the error. The error appears even if this script is alone in the workflow. Does anybody know what it means?

    That error means that the script wasn't able to communicate with the targeted application properly, which can happen if the application crashes while the script is running. If that error doesn't cause any problems, it's appearance can be suppressed:
    try
    (your code)
    on error number -609
    end try
    This construct will not execute any code on or after the line which produces the error.
    (32099)

  • LSOpenApplication returned error -10810

    Can anyone help explain why I am getting this error message in the system.log?
    Jun 24 13:15:23 ns1 loginwindow[60]: spawnvialaunchd() failed, errno=22 label=[0x0-0x15015].com.apple.finder path=/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder flags=0
    Jun 24 13:15:23 ns1 loginwindow[60]: LSOpenApplication returned error -10810, path=/System/Library/CoreServices/Finder.app
    Jun 24 13:15:23 ns1 com.apple.loginwindow[60]: LSOpenApplication returned error -10810, path=/System/Library/CoreServices/Finder.app

    Try a google search for *error 10810* which brings up many hits, including http://discussions.apple.com/message.jspa?messageID=6074977 wherein MarkDouma® describes the error in detail. Simplest thing to do is reset the LS database and restart. Run this one-line command in the Terminal app. Copy & paste and hit the return key:
    +/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user+

  • Connecting with Bluetooth--AppleScript Error

    My current internet connection is through my mobile company here in Italy while studying abroad using the bluetooth of my phone. There's a program that I have to run from the company to connect, and the first few days after installing Leopard I was able to still connect, but with several glitches (i.e. locking up, my menu bar freezing in the connection, time, and power area showing the pinwheel when I hovered over it) and this caused me to have to force my laptop to shut down by holding the power button on several occasions.
    Now when I open the program, as it is loading the phone information and taking control of the network settings, I am greeted by a message saying, "The application FMM3MYIC quit unexpectedly." offering me to ignore, report, or relaunch. Both ignoring and relaunching lead to a second message saying (translated from Italian) "AppleScript Error: The localconnectionstatus variable is not defined. (-2753)" Ultimately this leads me without a connection.
    Any hints as to why it was running fine before and not now? I've recently installed the two latest updates thinking that might help and deleted the files as well as re-installed the program.
    I know nothing really about scripts, but would it be possible to edit the script for the program. Any help would be great--I went to a local Mac store (not an official one--just a support and sales place) here in Milan and they were really of no help. His suggestion was to run DiskUtility, which did me no good. Anyway thanks in advance.

    Could you verify a couple of things please?
    Are the 64-bit desktop and 32-bit laptop both paired to the same Nokia 5800, and are they used in such a way that both computers could be connected via Bluetooth to the 5800 at the same time? You should verify that the previous Bluetooth connection is turned off before using another. This can be done for example by disabling the bluetooth dongle from the other computer. It could be said that Ovi Suite doesn't support connecting to a mobile phone from multiple computers.
    Are you able to pair your Nokia 5800 with the Toshiba laptop at all? Or did I understand the problem correctly, that after restarting the Mobile device, it can be connected to the laptop? If it is a pairing problem, you could try pairing the device outside Ovi Suite by using the Microsoft Bluetooth stack directly.
    If the problem is not one of the above mentioned, and it persists, it could help if you post the following information to your reply (from Ovi Suite):
    Help->About->System Information->Copy text to clipboard

  • Program not running, error -10810

    i was using flash on my ibookk G4, they i closed the progam and later tried to work on it again, however this time there appears a window, which reads: An unexpected error has occured, error -10810.
    really need help, dunno whats happening with my computer

    Irene:
    Welcome to Apple Discussions.
    I have been unable to determine until now exactly what your error message means. A few questions, if you don't mind.
    1. +i was using flash+
    By that do you mean a USB jump drive?
    2. +i closed the progam and later tried to work on it again+
    Can you tell us exactly what program you were working on? And by "closed" do you mean quit? Was this program on the internal HDD or on the "flash drive"?
    3. Did you remove the flash drive and replace it?
    Before you respond here are a couple of things you can do.
    1. *Repair Disk Permissions*
    While booted from your internal HDD
    Go to (Applications > Utilities > Disk Utility.
    Select your HDD (manufacturer ID) in left column and First Aid in main column.
    Click Repair Disk Permissions at bottom left.
    2. Repair Disk
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu (Panther and earlier) or Utilities menu (Tiger) and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    (Check S.M.A.R.T Status of HDD at the bottom of right panel, and report if it says anything but Verified)
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    If DU reports errors it cannot repair you will need to use a utility like Tech Tool Pro or Disk Warrior
    Please do post back with responses to my queries and with an update on the procedures above.
    Cheers
    corneliius

  • Finder.app doesn't start error -10810

    Hope someone can help:
    Restarted the computer and the finder app doesn't start anymore showing error -10810 (The application Finder.app can't be opened)
    The top menu bar doesn't show and no app can be started. Safari says: You can't use this version of the application Safari.app with this version of MAC OS X
    ps. the cdrom doesn't work!

    I repaired permissions from the SL DVD a few times and nothing changed.
    Finder starts then closes.
    Any app I run ends up in a Problem Report dialog with the SIGTRAP exception type.

  • I am trying to load a calpatch to a program called Caldera, but i keep getting the following "AppleScript Error – Terminal got an error:apple event timed out ( -1712)" my IOS is Yosemite, and i am running the latest version of the caldera program

    I am trying to load a calpatch to a program called Caldera, but i keep getting the following “AppleScript Error – Terminal got an error:apple event timed out ( -1712)” my IOS is Yosemite, and i am running the latest version of the caldera program

    Hi Linc, thanks for this ... it is weird, we tried this previously, but we only did a restart.
    This morning our Mac was 'off' even though we hadn't turned it off, (maybe a power outage) I restarted and ran the calpatch immediately, and it worked !!
    it is embarrassing, because as a service engineer, I am always telling customers to restart and even power down completely before trying again.
    Thanks.
    Snakeydee

Maybe you are looking for

  • "FaceTime dosn't enter on my iPad"

    "FaceTime dosn't enter on my iPad"

  • Do I need to have studio monitors?

    Being one day in to logic (Oh man is it overwhelming), do I need studio monitors? My problem being is that I start to create a track and then when I go to playback, I get nothing from my speakers. Do I need to change a setting or am I a complete idio

  • WLC: Need to change pre-shared key with a script

    Hello, I need to change pre-shared key on a Guest Wi-Fi with a script. Does anybody has an idea how to find the right entry in the WLC 2125 MIB to change it through SNMP? Gorazd

  • I cannot access my iphoto library on my external Hard drive

    Hello, I backed up my iphoto library to an external hard drive. Now when I try to access it, all I get are dotted outlines where the pictures should be and then when I click on a the dotted outline it gives me an exclamation mark in a triangle. Help!

  • My crawl Log only has old data in it

    Good afternoon!    I just recently modified a content source to include a new url and remove the old url for our intranet and this is the first time we have updated it in years.  The crawl log summary is showing there are successes/failures/warnings