realbasic-nug
[Top] [All Lists]

Re: How do you access errors returned from AppleEvents?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: How do you access errors returned from AppleEvents?
From: Kevin Sellers <lists at slothsound dot com>
Date: Sat, 29 Dec 2007 23:59:52 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <477613CC dot 8070100 at slothsound dot com> <F6C0ECDC-0E35-4EBB-8058-CEF89CDD9CA1 at declareSub dot com> <4776B90B dot 30005 at slothsound dot com> <00402040-E03B-488C-86DE-91104202ECE6 at declareSub dot com>
Charles Yeomans wrote:
>
>
> I found it, thanks to Spotlight.  I've put it up on my web site.
>
>   
> <http://www.declaresub.com/article/98/retrieve-the-reply-error-from-an-apple-event
>  
>  >
>   


Once again, Charles, YOU ROCK!

Now the next issue is that if something doesn't return an error, I get a:

errAEDescNotFound    -1701    Descriptor was not found


I am assuming that this is because the parameter "errn" doesn't show up 
unless there is an error.
So is it safe to assume that if ae.ReplyError returns -1701 that there 
is in fact no error?
Or is there a way to test if "errn" is an available parameter?

I've been pouring over the apple event manager docs and my head is spinning.
I keep getting 'atributes' , 'parameters' ,  and 'descriptors' confused, 
so I'm not sure which function to go after with a declare and if I do, 
how to parse what I end up with.

Thanks again,

Kevin
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>