Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!wuarchive!uunet!pilchuck!amc-gw!sumax!polari!smelly From: smelly@polari.UUCP (Tom Benedict) Newsgroups: comp.sys.mac.hypercard Subject: Re: scope rules for scripts Summary: I thini Keywords: hypertalk, messages, scope Message-ID: <3088@polari.UUCP> Date: 5 Jan 91 05:40:33 GMT References: <16488@cs.utexas.edu> Organization: Seattle Online Public Unix (206) 328-4944 Lines: 26 Regarding field and card references in HC: I have not tryied your specific script, but you might try adding some parens as per this example: -- This is your code -- == on doit arg1, arg2 == put arg1 & arg2 after card field "field 1" of card "one" == put card field "field 1" of card "one" & "foobar" into card field "field 2" == end doit -- Change line 3 to -- put (card field "field 1" of card "one") & "foobar" into card field "field 2" I don't know what the technical term is for this type of naming, but HC seems to be looking for 'card "one" & "foobar"..' instead of 'card "one"' !! If I was a 'real' programmer I could explain it in computer science terms, but unfortunately I'm just a HyperHacker... I hope this helps. I know I used to run into this problem a lot, but now I just keep adding parens until it works! Tom Benedict