Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!CAT.CMU.EDU!ns From: ns@CAT.CMU.EDU (Nicholas Spies) Newsgroups: comp.sys.mac.hypercard Subject: Copying contents of stacks Message-ID: <1080@PT.CS.CMU.EDU> Date: 9 Mar 88 20:09:42 GMT Sender: netnews@PT.CS.CMU.EDU Organization: Carnegie-Mellon University, CS/RI Lines: 40 Keywords: copy, stacks, fields, script I want to copy the contents in fields of one stack to an updated version new stack. I used a script like the one here... on copyStuff -- executed from a button in the source stack put the number of cards into numCards repeat with i = 1 to numCards go card i of stack "sourceStack" put field "f1" into f1contents -- and so on go stack "destination" -- has one card to begin with, with fields, etc if i > the number of cards then doMenu "New Card" end if go card i put f1contents into field "f1" -- fields have same names -- and so on end repeat end copyStuff There are almost 1100 cards in the source stack. Of course I tried it a few times on about 20 cards to make sure things were working as expected, and then let it go for about an hour to copy all field contents. I compacted the destination stack only to find that only abour 5 card's worth of stuff had been copied, even though all the cards were created in the destination stack. What gives? Did I unwittingly destroy all the imported information by compacting the destination stack? Is there something that I have to do to make sure the imported data sticks? Considering this didn't work, is there a "right" way to do it? Any suggestings would be appreciated... -- Nicholas Spies ns@cat.cmu.edu.arpa Center for Design of Educational Computing Carnegie Mellon University