Re: Quitting from an idle handler
Re: Quitting from an idle handler
- Subject: Re: Quitting from an idle handler
- From: "J. Stewart" <email@hidden>
- Date: Tue, 9 Aug 2005 17:02:08 -0400
On 08/08/05 at -0700 Gil Dawson said this
>My strategy for implementing this scenario is to make all the tests
>on their failure branch call a single subroutine that puts up a
>display dialog then calls error number -128.
>
>What would you suggest?
Wrap your entire script with a Try - on error block, it will catch any errors that occur within it. You can even nest other try - on error blocks within the main one if needed. The end result is a whole lot less code which means a whole lot less debugging.
That said, if the other approach works best for you, go for it. :)
JBS
--
If 4 out of 5 people SUFFER from diarrhea, does that mean that one enjoys it? - George Carlin
_______________________________________________
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