Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!microsoft!peterbak From: peterbak@microsoft.UUCP (Peter BAKO) Newsgroups: comp.sys.mac.hypercard Subject: Re: Creating a stack via Hypertalk? Message-ID: <53805@microsoft.UUCP> Date: 27 Mar 90 19:10:55 GMT References: <53654@microsoft.UUCP> <10889@hoptoad.uucp> <1821@sequent.cs.qmw.ac.uk> Reply-To: peterbak@microsoft.UUCP (Peter BAKO) Organization: Microsoft Corp., Redmond WA Lines: 32 In article <1821@sequent.cs.qmw.ac.uk> davide@cs.qmw.ac.uk (David Edmondson) writes: >>In article <53654@microsoft.UUCP> peterbak@microsoft.UUCP (Peter BAKO) writes: >>>I'm putting a stack together which needs to have a function that will >>>create a new stack with the name that is already residing in a card >>>field. Furthermore this new stack must have the same identical >>>first four cards as the stack which created it. If there is any way > >I did something like this by using File Copy XCMD (written by >Chris Hyde here at QMW since I couldn't find one anywhere else) >and a File Rename XCMD which I think came off an early >Developer Stack. I needed to create a variety of stacks so I I would like to thank everyone who responed to my question, and to post how I was finally able to find an acceptable solution. On the "Phil&Dave's Excellent" CD there is a stack by the title of "NavStack". One of the XFNC within it is called FileCopy. It takes two arguments (source file, dest file) and copies file one into the second name. I supply the second name from a cd fld, and give it the name of the current stack as the source file. WHen the copy is done, I simply jump to the new stack, and delete all the cards above four. It may not be the most elegant solution, but it does work. Peter -- (*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\/-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*) ( UUCP: peterbak@microsoft || Is this all that I am? Is there ) ( CompuServe: 71170,1426 || nothing more? - V'ger ) (*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-/\-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*)