Re: AppleScript Try
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.