Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!qmw-cs!davide From: davide@cs.qmw.ac.uk (David Edmondson) Newsgroups: comp.sys.mac.hypercard Subject: Re: Creating a stack via Hypertalk? Message-ID: <1821@sequent.cs.qmw.ac.uk> Date: 23 Mar 90 13:49:51 GMT References: <53654@microsoft.UUCP> <10889@hoptoad.uucp> Reply-To: davide@cs.qmw.ac.uk (David Edmondson) Organization: Computer Science Dept, QMW, University of London, UK. Lines: 25 Summary: Expires: Sender: Followup-To: Distribution: Keywords: >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 >>for a script to paste a name into the Save a copy... dialog, then I >>could use that, and then delete any cards which have a card number >>greater then four. Can anyone offer a better method? > 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 kept a template of each, copied and renamed the file and did the stack specific stuff from a script, if the stuff on the first four cards is variable then you can copy the stack you are in (if the XCMD doesn't let you copy an active stack you may have to go to the home stack temporarily but with a lockscreen the user will never know). At the time the rename XCMD was also a good way of checking to see if a stack already existed, attempt to rename the stack to the same name and you know it isn't there if you fail. Dave