• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quitting from an idle handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Quitting from an idle handler
      • From: Gil Dawson <email@hidden>
References: 
 >Re: Quitting from an idle handler (From: Gil Dawson <email@hidden>)

  • Prev by Date: Re: wake screen from sleep
  • Next by Date: Re: Introduction and first questions
  • Previous by thread: Re: Quitting from an idle handler
  • Next by thread: Re: Quitting from an idle handler
  • Index(es):
    • Date
    • Thread