Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

PowerBook G4 15-inch - Double-layer SD, Mac OS X (10.4.7), Macintosh believer since 1988

Posted on Sep 26, 2006 7:18 AM

Reply
Question marked as Best reply

Posted on Sep 26, 2006 8:43 AM

Hi

It isn't an AppleScript error, it's a Launch Services error which means "the application can't be run because it is inside a Trash folder."

This post on CocoaBuilder has more information. Googling kLSAppInTrashErr is also instructive.

And bit more hunting got me this, which is about as canonical as you're likely to get 😉

All the best,

H
4 replies
Question marked as Best reply

Sep 26, 2006 8:43 AM in response to Steve Davidson

Hi

It isn't an AppleScript error, it's a Launch Services error which means "the application can't be run because it is inside a Trash folder."

This post on CocoaBuilder has more information. Googling kLSAppInTrashErr is also instructive.

And bit more hunting got me this, which is about as canonical as you're likely to get 😉

All the best,

H

Oct 2, 2006 6:08 AM in response to HD

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

Oct 2, 2006 6:23 AM in response to Guy Facius

Guy,

I've never used FileMaker in my life so I'm not the best person to ask 😉

But I believe you might want to investigate using a with transaction wrapper to limit database access to your own script.

This is more of a guess than a definitive answer.

(It might also be worth posting this in a new thread - not everyone looks at threads which are already marked "Solved".)

Hope this helps,

H

AppleScript Error Codes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.