• 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
Syntax error bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/>


  • Follow-Ups:
    • Re: Syntax error bug?
      • From: John W Baxter <email@hidden>
  • Prev by Date: RamDisk shutdown dialog
  • Next by Date: re: RamDisk shutdown dialog
  • Previous by thread: Re: RamDisk shutdown dialog
  • Next by thread: Re: Syntax error bug?
  • Index(es):
    • Date
    • Thread