Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!asuvax!mcdphx!udc!willcox From: willcox@urbana.mcd.mot.com (David A Willcox) Newsgroups: comp.sys.mac.hypercard Subject: Re: Merging Stacks Message-ID: <1276@urbana.mcd.mot.com> Date: 7 Jun 90 14:06:03 GMT References: <36192@sequent.UUCP> <8563@goofy.Apple.COM> Organization: Motorola Microcomputer Division, Urbana, IL Lines: 37 >> I have two 'address' stacks which I'd like to merge. Does anyone have >> a script which will merge the stacks without creating two backgrounds? I was under the impression, from something I read some time ago, that doing a "Copy Card" in one stack and "Paste Card" multiple times would result in the second stack having a bunch of separate backgrounds, each with one card. However, I tried it last nite and found out otherwise. I copied all cards in one background between stacks essentially as follows (this from memory): on cpbg tgtStack,theBg set lockMessages to true set lockScreen to true push card go first card of background theBg repeat with i = 1 to the number of cards in background theBg domenu "Copy Card" push card go stack tgtStack go last card of background theBg domenu "Paste Card" pop card go next card of background theBg end repeat pop card end cpbg When I looked at the background information for the background in question in the target stack, it said that the background was shared by a bunch of cards, so I deduce that multiple backgrounds were not created. This seems to work even with very old versions of HyperCard. Am I deceived? David A. Willcox "Just say 'NO' to universal drug testing" Motorola MCD - Urbana UUCP: ...!uiucuxc!udc!willcox 1101 E. University Ave. INET: willcox@urbana.mcd.mot.com Urbana, IL 61801 FONE: 217-384-8534