I hope this is the right forum to post this to. If not, please direct me to the best forum.
The following script is directly from the AppleScript Language Guide from Apple Computer:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>on makePoint( x, y )
script point
property xCoordinate:x
property yCoordinate:y
end script
return point
end makePoint
set myPoint to makePoint(<font color = blue>10</font>, <font color = blue>20</font>)
get xCoordinate of myPoint
get yCoordinate of myPoint</font>[/code]
Attempting to compile this script brings up the error:
Expected "end" but found "property"
and highlights the word property the line property xCoordinate:x
If I edit the line that says script point to say just script instead of script point, the script compiles without trouble.
Am I doing something wrong or is the manual off?
Thanks,
Chuck