AppleScript Error Codes

If this isn't a FAQ, it should be (but there doesn't seem to be a FAQ for this topic, and searches fail).
The question: Where can I find a list of AppleScript Error Codes.
This simple bit of code
tell application "Oracle Calendar"
activate
end tell
Started generating a -10660 error, and it took me longer than it should have to discover that the script was pointing at the old version of the application that I had in the trash, and not the new version that replaced it. Easily remedied once I knew what the problem was.
So, is there a canonical link out there with AppleScript error codes?
Thank you.

HD,
Deeply impressed by your detective work on this error code. Wonder if you can help me with another.
I am scripting Filemaker using 'do applescript steps'. Once the AS is done i pass back info by using AS to tell FM to set one of its own fields. So for more clarity -
IN FM
Call Filemaker script
Call Applescript script
tell filemaker to set a field to the value of an AS variable
end Applescript script
end Filemaker script
and sometimes i get a -10011 Error on that Filemaker setting field step. The error message is "Data being accessed by another user,script or transaction". Can you throw any light ? (more details here)
No one else is using the db or even logged on at the time of these errors.
Thanks

Similar Messages

  • Error Code -36 While Writing to External Drive

    I have a 2.16GHz Core Duo MacBook Pro with the 100GB 7200 RPM HDD and 1GB 667 RAM. I am trying to use my MBP with a Western Digital 250GB MyBook Essential external HDD connected via USB 2.0.
    The external HDD used to be formatted with FAT32 (I was unaware) and I could read and write small files to the drive with no problem. However, when I tried to copy my iTunes folder to the drive (21.7 GB) I would always get an error soon after the transfer began. The error message reads:
    The Finder cannot complete the operation because some data in "08 Bottle of Blues.mp3" could not be read or written. (Error Code -36).
    The message will always come up on the same file. If I delete the file mentioned in the error message, the error will still come up after about the same amount of time has elapsed, but just on a different file.
    Recently, I learned that the external drive was FAT32 so I formatted it with Mac OS Extended (Journaled). I still get the same error.
    I have tried using Carbon Copy Cloner 3.0b5 and SuperDuper! 2.1.4 and neither application can complete the transfer--using the Mac OS Extended file system. CCC gives me the error:
    15:45:02 Error: asr: could not copy /./Applications/AppleScript/Script Editor.app/Contents/Resources/no.lproj/ScriptEditorHelp/gfx/sedebug.jpg; Input/output error
    15:45:02
    15:45:02
    15:45:05 ccc.sh: The restore operation failed, Error code: 98
    SuperDuper! gives me the error:
    | 04:00:49 PM | Error | ditto: /Users/caseyhancock/.Trash/Office 2004 for Mac Test Drive/Office/Fonts/./MS Mincho.ttf: Input/output error
    AppleCare support hasn't been able to help me, and I feel like I've searched exhaustively for information about Error Code -36. If anyone could shed some light on my problem and help me backup/copy files to this external HDD I would greatly appreciate it. Thanks in advance.
    MBP 15" 2.16 1GB 100GB 7200RPM   Mac OS X (10.4.7)  

    In my experience, it was a BAD EXTERNAL DRIVE...
    sometimes they are bad (and the one I had was a external USB 120 GB Western Digital) due to fall, or something, and you can format and they work, but they have a place on the disk that is just bad, and freezes the external disk, and it is unable to accept commands.
    A way of testing this, is to write to the entire disk..
    Doing this will kill the entire drive, but will allow you to verify that you can write to the whole drive... (in addition to erasing everything on it.. )
    make sure the disk is mounted in the finder.. and give it a uniqe name... so it will be easy to distinguish in the commands below.
    THE FOLLOWING IS INTENDED AS A GUIDE. VERIFY YOU KNOW WHAT YOU ARE DOING BEFORE YOU DESTROY VALUABLE DATA..
    open the terminal program:
    type the following:
    df -h
    you should see all the disks that the are connected to the system. a sample of the output is below:
    it does not look so nice, as the font is not monospaced, but on the terminal window it lines up nicely:
    Filesystem Size Used Avail Capacity Mounted on
    /dev/disk0s2 186G 124G 62G 67% /
    devfs 97K 97K 0B 100% /dev
    fdesc 1.0K 1.0K 0B 100% /dev
    <volfs> 512K 512K 0B 100% /.vol
    automount -nsl [182] 0B 0B 0B 100% /Network
    automount -fstab [198] 0B 0B 0B 100% /automount/Servers
    automount -static [198] 0B 0B 0B 100% /automount/static
    /dev/disk1s1 466G 463G 2.4G 99% /Volumes/wd-usb-250
    in my case the last disk is a WD mybook that I called "wd-usb-250"
    now, in the finder, unmount the disk and make sure nothing is accessing it...
    notice that the computer thinks that the disk is connected via the path:
    /dev/disk1s1
    VERIFY THAT THIS IS THE SAME FOR YOU.. IF NOT THEN USE THE APPROPRIATE DRIVE..
    this next step will go and write zero's to the whole drive.. if you are not so adventures you could just read from the entire disk.. if there are major problems then the read will not work either.
    SO: to write in the terminal do the following: THIS WILL KILL THE DISK YOU ARE TESTING... INSURE YOU KNOW WHAT YOU ARE DOING...
    NOTICE HOW IN THE COMMAND BELOW I HAVE /DEV/DISK1 NOT /DEV/DISK1S1.
    TRUNCATE YOUR DEVICE ACCORDINGLY...
    dd if=/dev/zero of=/dev/disk1 bs=16m
    let it run till it either quits because of a i/o error or says it reached the end of the device.. if it reached the end of the device the device just had zero written to it..
    it at the end will tell you how many 16Mb chunks of zero it wrote.. (this is assuming that your disk is a even multiple of 16Mb).
    now to test that the device actually works, we can read the whole thing. by issuing the following command in the terminal.
    dd if=/dev/disk1 | hexdump -C
    you should get an output that looks like this (with the records being changed to be the size of your disk divided into 16 Mb chunks...:
    00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
    1+0 records in
    1+0 records out
    16777216 bytes transferred in 23.666544 secs (708900 bytes/sec)
    Sorry for the long post, and hope this is not too technical but helps.
    S.
    Macbook, Macbook Pro   Mac OS X (10.4.9)   + virt machines, linux, xp, vista 2 gb RAM 200 Gb

  • Where is a comprehensive list of error codes?

    I keep looking for a comprehensive list of all error codes sorted by number.  If, for example, something reports an error like "An error of type -1409 has occurred.", it seems there must be a list somewhere of descriptions of errors of type -1409.  Is there?  Does such a list exist?
    If not, can you help me understand why not?
    --Gil

    Thanks for the suggestions.  I sent Kevin a message...
    Hi, Kevin--
    Thank you for compiling a very large list of Mac error codes.  I just got one that's not on your list, -1409.  I'm not sure what caused it.  I got it when I tried to run an AppleScript...
        set aFileRef to open for access file "MBProHD:Users:gil:aPackage"
    where aPackage was a package, instead of a file.  Not sure what it means.
    --Gil
    I  tried Googling "An error of type -1409 has occurred."  It got a large number of hits; however most were of the form "Try this and see whether it goes away."  In other words, no definition.  Then I found one thread where a Senior Member posted a definition without attribution...
    Error: -1409
    Macintosh system error (-1409) * Named fork does not exist */ error
    The info we have on this error means that some part of the OS is damaged or missing, (assuming that the HD directories & such aren't messed up). Try reinstalling the last big combo update from Apple. It's possible that you will have to do an "Archive & Install" to repair your system files.
    Now we're getting somewhere, but where did he get that definition?  The source seems to be a 2010 message on the Adobe Reader Bulletin Board.  The contributor's email is marked "private" and it's not obvious how to reach him or her.
    Thanks, WZZZ, for your helpful suggestion. 
    Back to my original question -- Where's the list? -- I guess we're all disappointed to learn that none of us knows where some Apple employee keeps it. 
    --Gil
    P.S.-- I just got word back from Mail about my message to Kevin...
    Delivery to the following recipient failed permanently:
        [email protected]
    Ah, well.  Guess I'm ready to give up now.
    --Gil
    Message was edited by: Gil Dawson

  • Applescript error 10665

    The following simple applescript code for XLD (X Lossless Decoder) suddenly returns message "An error of type -10665 has occurred"
    tell application "XLD"
    activate
    end tell
    This is a simple code and I do not see anything wrong.
    And this is a part of my script and the whole script has been working fine for years.
    Can anyone help me to resolve this issue?
    Thanks!

    Is this an error that began when you moved to Lion, or did XLD work in X.7.1 and then suddenly start throwing this error?  If the former, it's almost certain that you need an update of the sotware from the provider.  if it's the latter, I suspect it's a file system issue - corruption in the application or the launch services database, perhaps.  I think that because error codes tend to be grouped loosely by type, and -10660 seems to be related to file system oddities.  you could try resetting the launch services database or looking for duplicates of the app on your drive.

  • 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)

  • Repeatedly, this error code suddenly appears on the screen and I don't have a clue what it means or what to do:  "A script in this movie is causing Adobe Flash Player to run slowly.  If it continues to run, your computer may become unresponsive.  Do you w

    Repeatedly, this error code suddenly appears on the screen and I don't have a clue what it means or what to do:  "A script in this movie is causing Adobe Flash Player to run slowly.  If it continues to run, your computer may become unresponsive.  Do you want to abort the script?
                                             No     Yes"

    Hi,
    Some "movies' are actually Flash files.
    This means the Flash App will play them (possibly in a browser in some cases).
    Depending where this item is and how it is playing it may be effected by other things
    A web page can include javascript.
    Apple uses javascript here to help with creating the posting box, the Edit options, Adding pics/smilies and the like.
    Sometimes the javascript can be what is called a runaway process and gets sort of stuck in an endless loop.
    If it is a free standing item then it might be triggered by AppleScript on the Mac. (or be modified in some way)
    Again if the Script (normally written with a upper case S) is not perfect it can cause problems.
    9:09 pm      Wednesday; February 26, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Error Code -54 when syncing

    I recently imported a few CD's and now I get Error Code 54. Any ideas on how to isolate the corrupted file? Some of the CD's were burned files and some were original CD's. Don't know what to do next. Thanks,
    iPod Nano 4Gb

    Open the Script Editor in the /Applications/AppleScript/ folder and run the following:
    tell application "Finder"
    set locked of every item of entire contents of folder "Music:iTunes" of home to false
    end tell
    This issue is often due to a locked item in the iTunes library, which can be unlocked by running the script. If you've moved the iTunes music folder, adjust the second line as needed.
    (24767)

  • AppleScript Error when use with VisualHub

    Hi all,
    When i try to convert any movie with audio on VisualHub, then will show up these:
    sh: -c: line 1: unexpected EOF while looking for matching
    sh: -c: line 2: syntax error: unexpected end of file (2)
    Pls help or how can i fix it?
    Many Many Thanks
    morningpanda

    And your AppleScript code looks like ? ...
    **The Applescript error**
    **sh: -c: line 1: unexpected EOF while looking for matching**
    **sh: -c: line 2: syntax error: unexpected end of file (2)**
    And the format of the movie file (to be converted) is ? ...
    *quicktime to mp4*

  • Running Applescript /VBScript code using NativeProcess

    I know how to run a script file using NativeProcess, but I can't seem to figure out how to run pure script code.
    Is there any way to run AppleScript and VBScript code without first saving it to a file?
    Harbs

    The script is the same. What do you mean your suspicion of executing AppleScriptObjC is wrong?
    Macbook pro, fully up to date.
    See the first 2 posts in this thread for the crashes. When I comment out the error code it doesn't crash. Rather, Xcode logs
    Runtime error in script: (null)
    Else, the app crashes pointing to thread 1. Specifically the app stops on the error part of the method. Here is exactly what I'm seeing:
    EDIT:
    I just printing the scripts path to the console to check if it's being included in the app bundle, which it is. 

  • Cannot delete file from external hard drive (error code 36) in Finder, but Terminal is ok

    I have a relatively new Macbook Pro Retina 15" and have a Western Digital 1 TB Passport.  I've been using the passport for about a year now without any problems on older Macbooks in my house.  I used to be able to read and write to this drive no problem.  I am using the Paragon NTFS for Mac software in order to read and write to the NTFS drive.  When I navigate through the drive in Finder, if I try to create a new folder, I do not have a problem.  If I try to delete that folder I just created, I get this error:
    The Finder can’t complete the operation because some data in “untitled folder” can’t be read or written.
    (Error code -36)
    The folder has nothing in it whatsoever.  I just created it.  But if I go to Terminal and I run
    rm -rf "untitled folder"
    This works fine.  Why is Terminal acting different than Finder?  This does not happen on my other Macbooks.  Thanks in advance.

    Thanx for such qucik reply!!! The pages were great, it had an answer for my problem, but unfortunately it also involved me dealing with it only on the MacIntosh HD itself, not on mounted external drive I suppose... So it didn't work they say that there is an icon in the left corner indicating locked folder - I don't see any icon on it. It says you can untick the box to unlock the folder - there is no tick to be unticked. Finally, they say that if I don't have permition or rights I cannot delete it. But how do i change permittion which already says that i can read and write in it? So everything appears to be normal only I cannot delete it. there is not even any warnig telling me I don't have enough rights, it just requires the password and after me typing it in it makes the sound of scraping paper but does nothing more. I aslo had some problems with emptying Trash after being seemingly succesful with one file and had got so far to have them appear in the Trash (no clue how this one actully got there though..) I followd the advice and emptied the Trash with Terminal. The Folder is still there but it shows 0 Kb... So far so good BUT: It is still on the external drive, so I obviously only managed to copy it into the Trash!!! Phew, innit a bit too tight to poor owners, this macbook?? I want my rights back!

  • Report generation failed----​error code:-1720​5; Access Denied.

    Hi, All
        i have a trouble about report generation.it seems the error happened at the "write UUT report"--this step is teststand report generation'DLL.
        detail:
        An error occurred calling 'Save' in 'Report' of 'NI TestStand 2010 SP1 API'
    Access Denied.. Error writing to file 'D:\program\seq\xxx.xml'.
    The file might be open in another application. If file access is intermittently denied, you should try disabling the Microsoft FindFast utility. 
        error code:-17205; Access Denied.
        locationtep 'Write UUT Report' of sequence 'Single Pass' in 'SequentialModel.Seq'
        How to fix it?
        Thanks a lot.
    BR

    Hm, it looks like the file might be open in another application. If you see that file accesss is intermittently denied, you should try disabling the Microsoft FindFast utility.
    CTA, CLA, MTFBWY

  • There was a recent upadate on my PC, however it does not work. A error code comes up which says, min version is not compatible with max version. And I caanot open my browser. Please help.

    I do a system restore which allows me to open my browser. Without this I cannot open my browser - the error code comes up every time.

    Do a clean (re)install
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    From https://support.mozilla.com/en-US/questions/764376

  • My ipod touch is not list as a device on itunes.  When I tried do update itunes, I get a ox8007054f error code and the update will not complete.

    My ipod touch is not listed as a device when connected to my computer.  As suggested I attempted to download the latest of itunes.  I got an
    ox8007054f error code and the down load will not complete.  I have also tried to restore my computer to an earlier setting, but it will
    not accept the change.

    Have you looked at this completed previos discussion. It discusses 0x8007054F.
    Re: Error message when trying to install iTunes

  • Capturing oracle error codes into a variable

    Hi
    Can someone show me how it is possible to save an Oracle defined error code into a variable? What I am trying to do is when a stored procedure fails an Oracle error is raised, such as ORA-xxxx, then pass this code into variable to be saved into a log.
    How do I achieve this?

    user633278 wrote:
    How do I achieve this?Function SQLCODE in PL/SQL exception handler returns error code. SQLERRM returns message:
    SQL> declare
      2      x number;
      3  begin
      4      x := 1/0;
      5    exception
      6      when others
      7        then
      8          dbms_output.put_line('Error code: ' || SQLCODE);
      9          dbms_output.put_line('Error message: ' || SQLERRM);
    10  end;
    11  /
    Error code: -1476
    Error message: ORA-01476: divisor is equal to zero
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Error Code:942 While Scheduling a report in BI Publisher

    Hi All,
    I am trying to schedule one report in BI Publisher.
    After Clicking Submit Button while scheduling report,i get following error:
    Exception [TOPLINK-4002] (Oracle TopLink - 11g Release 1 (11.1.1.0.0) (Build 080319)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist Error Code: 942 Call: UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'JOB_ID_SEQ' Query: DataModifyQuery()
    Kindly Help me in resolving this issue
    Regards
    Amrita Singh

    i know the issue,i can give quick fix, but in-order to make sure you don't get another glitch like this.
    I would recommend, you to install the scheduler in another schema or another db.
    Re-installing the scheduler schema tables will fix this.

Maybe you are looking for