AppleEvent handler failed." number -10000

I get this error in a script that ran fine under 10.5, now under 10.6 I get the following.

tell application "iCal"
open alias "Unibody:private:tmp:temp_invite.ics"
--> error number -10000
Result:
error "iCal got an error: AppleEvent handler failed." number -10000

That's the part of the script that fails. iCal opening an .ics file. For reference I've posted the .ics file up at http://thefragens.com/pub/temp_invite.ics

Any ideas?

Mac OS X (10.6)

Posted on Sep 5, 2009 8:58 AM

Reply
11 replies

Sep 8, 2009 8:50 AM in response to red_menace

I do have to say that when I initially upgraded to 10.6 I dismissed the dialog asking where 'System Events' was.

Here is the entire script.

*set thepath to (path to startup disk as string) & "tmp:temp_invite.ics"*
*tell application "iCal" to open alias thepath*

Here is the result that I consistently get.

Result:
*error "iCal got an error: AppleEvent handler failed." number -10000*

Changing alias to file doesn't help me. I've only gotten it to work by using +do shell script..+

Sep 9, 2009 7:53 AM in response to Andy Fragen

Same problem here. A script that ran fine under 10.5 fails under 10.6.

The script text is:

set icsfile to (path to desktop folder as text) & "iCalEvent.ics"
tell application "iCal"
activate
open file icsfile
end tell

And it fails with this error:

error "iCal got an error: AppleEvent handler failed." number -10000

Now, if I insert a "return icsfile," it returns the correct Macintosh path, so whatever it is that "knows" how to find the desktop is working properly.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleEvent handler failed." number -10000

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