• 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: Joe Kelly <email@hidden>
  • Date: Fri, 25 Jan 2002 10:57:47 -0800

try
display dialog "Would you like to cancel?"
on error number -128
display dialog "Hey, you canceled! You weren't supposed to do that!"
end


> -----Original Message-----
> From: Serge Belleudy-d'Espinose [mailto:email@hidden]
> Sent: Friday, January 25, 2002 4:30 AM
> To: email@hidden
> Subject: Weird try block syntax
>
>
> Hi all,
>
> I've just seen this today in a script I'm testing, as well as in
> samples from Jon's commands:
>
> 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?)
>
> Thanks,
>
>
> Serge
> --
> \\//\//\// Serge Belleudy-d'Espinose Institut Jacques
> Monod - Jussieu
> // // // http://www.ijm.jussieu.fr/ Universites Paris
> VI, VII - CNRS
> //\//\//\\
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Simple calculation
  • Next by Date: Re: solutions to scripting addition terminology confilicts
  • Previous by thread: Re: Weird try block syntax
  • Next by thread: Re: boldly creating files where no file has been created before (or not...)
  • Index(es):
    • Date
    • Thread