• 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: AppleScript Try
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Try


  • Subject: Re: AppleScript Try
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 28 Aug 2002 16:48:11 -0700

On Wednesday, August 28, 2002, at 03:14 PM, John Delacour wrote:

I always force my scripts to include the 'on error e' line, even if I'm not going to use the error info, in the maybe false assumption that if the line is not there, the script will break in earlier versions. Am I right, or is the line just hidden?

The line is merely hidden. When you leave off the error block, the compiler acts as if you typed an empty "on error", and then there's a rule in the display function to hide empty "on error" blocks. It's completely forward- and backward-compatible; if you take on on-error-less script back to an pre-1.4 AppleScript, the explicit "on error" will appear, and if you take a pre-1.4 script with an empty "on error" forward, it'll disappear.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: AppleScript Try (From: John Delacour <email@hidden>)

  • Prev by Date: How can you detect that application is curently running?
  • Next by Date: Re: AppleScript Try
  • Previous by thread: Re: AppleScript Try
  • Next by thread: Re: AppleScript Try
  • Index(es):
    • Date
    • Thread