Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!batcomputer!beloin From: beloin@batcomputer.tn.cornell.edu (Ron Beloin) Newsgroups: comp.sys.mac.hypercard Subject: Re: Creating a new stack from a script (no dialog) Summary: use copyfile, renamefile xcmds on a template stack Message-ID: <5539@batcomputer.tn.cornell.edu> Date: 16 Jul 88 23:25:37 GMT References: <1729@vaxb.calgary.UUCP> <10520011@hpfcdc.HP.COM> Reply-To: beloin@tcgould.tn.cornell.edu (Ron Beloin) Organization: Cornell Theory Center, Cornell University, Ithaca NY Lines: 36 In article <10520011@hpfcdc.HP.COM> bayes@hpfcdc.HP.COM (Scott Bayes) writes: >> I need to create a new stack in from a script. >>The problem is to create one with a name that I assign >>it from the script. In other words, I can not do it >>with 'DoMenu "New Stack..."' since this will bring up >>a dialog for the user. . > >Please post any enlightenment you might provide or receive >on this point. I too wish to generate a name for a new Stack >without the user having to hold a dialog with HC over it. > >Scott Bayes I just copied this from the developer's stack, v. 1.2r : The CopyFile XFCN was written by Brad J. Hicks to give HyperCard the ability to copy a file (such as a stack) with full script control (necessary for making backup copies of a stack automatically, for example). Use it freely, but I would appreciate a thank-you or acknowledgement somewhere in the stack. Brad J. Hicks FidoNet: 1:100/523 CompuServe: [76012,300] SUS Mail: 11215 Sugartrail St. Louis, MO 63136 Seems like one could use this xfnc to copy a template stack that was make ahead of time and rename it (there is also a rename xfnc) completely under script control. Ron Beloin, Ecosystems Research Center, Corson Hall, Cornell, Ithaca,NY 14853 >> opinions << BITNET:BELOIN@CRNLTHRY; INTERNET:beloin@tcgould.tn.cornell.edu >> are mine << UUCP:{cmcl2,shasta,uw-beaver,rochester}!cornell!tcgould!beloin