• 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: Weird try block syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird try block syntax


  • Subject: Re: Weird try block syntax
  • From: "Serge Belleudy-d'Espinose" <email@hidden>
  • Date: Fri, 25 Jan 2002 20:48:48 +0100

At 8:45 -0800 25/01/02, Paul Berkowitz wrote:

> > try
> >
> > on error number -n
> >
> > end

>It's a basic feature of AppleScript, and must be in the ASLG, Serge.

Ok, my question was not clear enough. I _know_ about the following construct:

try

on error number errNum

end try

which puts the error number into the variable errNum, so that you can test it and use conditional error traping code.

My question is, when I see this:

try

on error number -1708 -- for example

end try

what does it do, does it trap only -1708? I _have_ read ASLG but couldn't find this construct, nor was I able to get something done with it. Time to go back to AS school?


Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod - Jussieu
// // // http://www.ijm.jussieu.fr/ Universites Paris VI, VII - CNRS
//\//\//\\


  • Follow-Ups:
    • Re: Weird try block syntax
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Weird try block syntax (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Weird try block syntax
  • Next by Date: Re: Weird try block syntax
  • Previous by thread: Re: Weird try block syntax
  • Next by thread: Re: Weird try block syntax
  • Index(es):
    • Date
    • Thread