Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!pmafire!mica.inel.gov!guinness!usenet From: bcarter@claven.idbsu.edu (Bruce Carter) Newsgroups: comp.sys.mac.hypercard Subject: Re: Scripting from scripts Message-ID: <1991Jun20.222034.13405@guinness.idbsu.edu> Date: 20 Jun 91 22:20:34 GMT References: <1991Jun19.201346.3477@ccu.umanitoba.ca> Sender: usenet@guinness.idbsu.edu (Usenet News mail) Organization: Boise State University - Courseware Development Lines: 33 Nntp-Posting-Host: brucespc In article <1991Jun19.201346.3477@ccu.umanitoba.ca> burchil@ccu.umanitoba.ca (Charles Andrew Burchill) writes: >In aleskine@cs.hut.fi (Arto Leskinen) writes: > >>How can I write scripts in to stack script from within script. For example >>... >>Can I write something like Put "Goto stack "&it into Stack Script >>aleskine@saha.hut.fi > The simple answer is yes you can added information to the stack script. >... > Put ... after last char of stack script >or > Put "..." after line ? of stack script Not exactly. You have to use the "set" command to change scripts. The easiest way to do this is to build your script in a variable, then set the script to that variable. Something like: put "on openStack" & return & "beep" & return & "end openStack" into newScript set the script of this stack to newScript If you need to modify an existing script, put it into a variable, then mess with it, then set it back. Like: put the script of this stack into oldScript put allMyNewGarbage after oldScript set the script of this stack to oldScript <-> Bruce Carter, Courseware Development Coordinator bcarter@claven.idbsu.edu Boise State University, Boise, ID 83725 duscarte@idbsu.bitnet (This message contains personal opinions only) (208)385-1250@phone