Re: AppleScript Language Guide
Re: AppleScript Language Guide
- Subject: Re: AppleScript Language Guide
- From: Jason Filice <email@hidden>
- Date: Sat, 27 Apr 2002 03:11:03 -0700
on 4/26/2002 8:46 AM, Mr Tea at email@hidden wrote:
>
This from Mickey - dated 26/4/02 04.06 pm:
>
>
> found a version from May 5, 1999 (AS 1.3.7).
>
>
>
> Can anyone point me to a *recent* version?
>
>
You found it.
>
>
Virtually everything in there is still relevant, because the ASLG is
>
concerned with telling you how to use the language, not with providing a
>
dictionary of the most up to date commands. For that you need to go to the
>
individual dictionaries of apps & additions. So using the 1999 guide to find
>
your way round subsequent releases of AppleScript is not equivalent to using
>
Photoshop 7 with only a version 4 manual for reference.
>
>
That being said... I have no idea what (if anything) in the ASLG is now
>
obsolete. Is this info available anywhere in simple-to-digest format?
>
>
Mr Tea
The AppleScript Source Book
<
http://www.applescriptsourcebook.com/applescript.html> creates regular
reports on what has changed in each version of AppleScript. That may be the
easiest way to keep up with the minutiae of the changes.
For the most part, the syntax hasn't changed much, except, for example, any
bugs that may crop up in the Finder or other scriptable system components.
However, one specific change that comes to mind is that at version 1.4.0
<
http://www.applescriptsourcebook.com/applescript/applescript140.html#newfea
tures> the "on error" handler was no longer needed in a "try" statement. In
other words, if you did not care about handling an error in a try statement
(and just wanted it ignored), you do not have to include the "on error"
part. In fact, if you *did* type "on error" and didn't include any
statements in the handler, it would be removed altogether when you compiled
it (at least it did for me, in Mac OS 9.0.4 and later).
try
tell application "Finder"
select file "Finder" of the system folder
delete selection
end tell
on error --necessary on versions of AppleScript before 1.4.0
end try
_______________________________________________
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.