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: Matt Neuburg <email@hidden>
- Date: Sun, 21 Aug 2005 07:53:15 -0700
On Sat, 20 Aug 2005 11:58:42 -0700, Glenn Sugden
<email@hidden> said:
>Most (if not all) of my Mail (v2.0.2) scripts no longer seem to work
>in Tiger (10.4.2) when activated from the script menu. There is no
>error message, no beep, nothing.
*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.
>However, they seem to run correctly when I open them up in Script
>Debugger and run them from there.
Then run them from Script Debugger and stop worrying about it. Or do as I
said above and catch runtime errors in the Script Menu so you know what they
are. But don't imagine that any other milieu will simulate the behavior of
Apple's Script Menu; the only way to test what happens there is to test
there.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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