Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!batcomputer!pyramid!hplabs!hpcea!twakeman From: twakeman@hpcea.CE.HP.COM (Teriann Wakeman) Newsgroups: comp.sys.mac.hypercard Subject: two questions Message-ID: <6410003@hpcea.CE.HP.COM> Date: 16 Dec 87 19:49:07 GMT Organization: HP Corporate Engineering - Palo Alto, CA Lines: 44 Two questions: (1) When somone aborts a script print command in Hypercard, how can my script identify that the print command has been aborted so it can carry out script below the print commands. The Problem: I want to print a card containing graphics, fields and buttons. I do not want the buttons to print. My script hides the buttons, prints the card, then shows the buttons. If the print command is aborted, the buttons stay hidden. (2) Background info: I am writing a Hypercard database that consists of several stacks manipulated from one index stack. I call this a stack cluster. There are two core stacks in the cluster. One is the index stack that provides an index of the data along with navigational and editing functions. The other is a data stack. The other data stacks in the cluster are optional. Each optional stack is a framework for maintaining certien kinds of data. It is intended that the user will install only those stacks providing frameworks for the kinds of data she wishes to keep. What I want to do: On startup of the index stack, identify which data stacks are in the cluster.The information will be used to: A. hide navagational and editing buttons for data stacks not in the cluster (I consider a data stack to be in the cluster if it is in the same hierarchical level as the index stack). B. For a script that will automatically compact all data stacks in the cluster when exiting the cluster (Sinse the menu bar is hidden, there is only one normal way to exit the stack cluster). QUestion: Is there a better way to identify the existance of a stack within a hierarchical level other then a go to stack command???? If not: if the go to command fails, is there any way to head off the "where is stack XXX" dialog box? All I want to do is test for the existance of a stack and put the result in a hidden field. Any ideas??????? TeriAnn Wakeman Hewlett-Packard Corp. Quality HPMUG cooridnator (415)857-5057