Syntax error bug?
Syntax error bug?
- Subject: Syntax error bug?
- From: Allen Watson <email@hidden>
- Date: Wed, 27 Dec 2000 09:47:54 -0800
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.:
to removeItem anItem from theList
--code to remove an item from a list
end removeItem
Is this a known bug?
One is forced to use "of" or "in", making for an awkward syntax:
to removeItem of anItem from theList
--code to remove an item from a list
end removeItem
--
Peace be with you!
Allen <email@hidden> XNS Name: =Allen Watson
My web page: <
http://home.earthlink.net/~allenwatson/>
Scripts for OE and Entourage: <
http://homepage.mac.com/allenwatson/>