• 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: Christopher Nebel <email@hidden>
  • Date: Fri, 25 Jan 2002 11:59:33 -0800

On Friday, January 25, 2002, at 04:30 AM, Serge Belleudy-d'Espinose wrote:

try

on error number -n

end

with n being just about any number needed.

I didn't know such construct existed. My first reaction would be that
this is bogus, but who am I to contradict Jon Pugh? :)
So is it a feature of Jon's commands- which I'm using actually- or
from an editor I'm not using (only Smile and SE?)

It's a long-standing but little-known feature of AppleScript; nothing to do with Smile or Jon's Commands. I didn't see any references to it in a quick scan of the ASLG, but maybe it appears in an example somewhere.


--Chris Nebel
AppleScript Engineering


  • Follow-Ups:
    • Re: Weird try block syntax
      • From: Bill Cheeseman <email@hidden>
    • Re: Weird try block syntax
      • From: Jon Pugh <email@hidden>
    • Re: Weird try block syntax
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
References: 
 >Weird try block syntax (From: "Serge Belleudy-d'Espinose" <email@hidden>)

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