Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!brutus.cs.uiuc.edu!apple!portal!atari!imagen!sun!newstop!exodus!woodard@troll.sun.com From: woodard@troll.sun.com (Mike &) Newsgroups: comp.sys.mac.hypercard Subject: Scripting Polygons & New Buttons Message-ID: <46@exodus.Eng.Sun.COM> Date: 14 Feb 90 18:31:36 GMT Sender: news@exodus.Eng.Sun.COM Reply-To: woodard@troll.sun.com (Mike &) Distribution: usa Organization: Sun Microsystems, Inc. Mt. View, Ca. Lines: 25 Hypercard and Supercard do something unexpected when I try to make a polygon from a script. I use: choose polygon tool -- (SC choose draw polygon tool ) click at 100,100 click at 100,200 click at 200,100 click at 100,100 but what happens is that after the first click, the first side of the ploygon is connected to the cursor, and both programs wait for me to manually click to finish the poly instead of getting the remaining clicks from the script. Any ideas? Also, is there a way to specify a newly created object? How can I name, or otherwise talk about something thats brand new? doMenu "New Button" set the name of button ??? to "junk" Mike Woodard woodard@sun.com