Re: Syntax error bug?
Re: Syntax error bug?
- Subject: Re: Syntax error bug?
- From: John W Baxter <email@hidden>
- Date: Wed, 27 Dec 2000 21:22:57 -0800
At 9:47 -0800 12/27/00, Allen Watson wrote:
>
When constructing a handler with labeled parameters, there can be a "direct
>
parameter", <optionally> preceded by the words "of" or "in". Both Smile and
>
Script Editor seem to <require> one or the other word. That is an error, at
>
least according to the AppleScript Language Guide. Script Editor chokes on
>
this (supposedly correct) syntax, e.g.:
Script Editor doesn't care at all about the syntax of what you ask it to
have AppleScript compile. It passes AppleScript the text and gets back an
error code, and with luck the compiled code and the decompiled text (which
it displays). (I don't know about Smile)
With that out of the way, yes...it appears that an "in" or "of" is
necessary...at least now. And that doesn't match the modern AppleScript
Language Guide. [I don't remember the dark ages (1993), so I don't know
about early versions of AppleScript.] I don't know whether the Guide or
AppleScript is wrong (or if we're both missing something).
--John
--
John Baxter email@hidden Port Ludlow, WA, USA