[comp.sys.mac.hypercard] Copying Stacks in HyperTalk

sticklen@cpswh.cps.msu.edu (Jon Sticklen) (05/11/89)

maybe the books we are using are brain damaged but...

is there a way in HyperTalk to copy an entire stack
(ie copy a file) in one operation. we have figured
out how to do card by card copies, but that happens
in roughly the age of the universe.

please send answers directly to
	hoa@cpsvax.cps.msu.edu

thanks in advance,
	
  ---jon---

-------------------------------------------------------------
	Jon Sticklen
	Artificial Intelligence/Knoweldge Based Systems Group
	Computer Science Department
	Michigan State University
	East Lansing, MI  48824-1027
	517-353-3711
-------------------------------------------------------------

newman@ut-emx.UUCP (Dave Newman) (05/11/89)

re saving a copy of a stack

Try using the doMenu command.  Something like the following
should work:

domenu "Save a Copy"

You'll have to look to make sure the name of the menu command
is right.  This will save the stack as "Copy of foo" if the
original stack is named foo.  You'll have to use an XCMD or
something if you want to rename the copy.

>>Dave

man@brunix (Mark H. Nodine) (05/17/89)

In article <2932@cps3xx.UUCP> sticklen@cpswh.cps.msu.edu (Jon Sticklen) writes:
>is there a way in HyperTalk to copy an entire stack

I'm working on an XCMD which will copy any file (including a stack).  So
you would do something like

  CopyFile source,dest
  if the result is not empty then
    put "Error copying file:" && the result
    exit <whatever>
  end if

Problem is, it doesn't work yet (I just started writing it yesterday).  If
you would like, I can try posting it to info-mac or something when it gets
done.

	--Mark