Re: Time to figure out what is going on...
Re: Time to figure out what is going on...
- Subject: Re: Time to figure out what is going on...
- From: "Gary (Lists)" <email@hidden>
- Date: Mon, 22 Aug 2005 03:15:06 -0400
"Glenn Sugden" wrote:
>> *All* scripts that throw *any* error in Apple's Script Menu fail
>> silently
>> ("no error message, no beep, no nothing").
>>
>> So wrap your script in a try block. In the error block of the try
>> block,
>> catch the error with all its parameters and show the info as a display
>> dialog or alert. Now you can see why you're failing at runtime.
>
> A great suggestion - not sure why it didn't occur to me. ;-)
>
> So now I get the helpful "NSReceiverEvaluationScriptError: 4"
> error message (string).
>
> Time to do some "I made it here"s... uhg.
Glenn, it might be more helpful to show some code around where you are now
getting an error. Depending on how you implemented Matt's suggestion, you
can often cause yourself wasted time by introducing another error just
trying to handle the original.
Meaning, for example, that if I understand your "I made it here's"
reference, you use display dialog to inform you along the way. That's an
okay to work, but you might be trying to display some kind of data that you
can not, by that means.
Matt says to "catch the error with all of its parameters", but just how you
are doing that is relevant.
Nothing better than posting your code when you're looking for error support.
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden