Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!jkc From: jkc@Apple.COM (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: Re: Hypercard 2.1 & new file commands Message-ID: <52835@apple.Apple.COM> Date: 14 May 91 00:09:35 GMT References: <42224@cup.portal.com> Organization: Apple Computer Inc., Cupertino, CA Lines: 71 In article <42224@cup.portal.com> David_Greg_Herlihy@cup.portal.com writes: >I noticed someone said something about enhanced open/close file commands >in HyperCard 2.1. Could someone tell me how the new commands will differ? When you run HyperCard 2.1 under System 6.x, the open and close commands behave just as they do in HyperCard 2.0. However, when you run HyperCard 2.1 under System 7.0, the open command will be able to open a document within a "System 7 savvy" application that's already running, through the use of the "open document" Apple event. For example: open "Really zesty Quarterly Report" with "Claris Resolve" (Apple events, by the way, are the most common means that 7.0 applications will use to communicate with each other. Many applications have already become "System 7 savvy", such as Excel 3.0 and MacWrite Pro.) Similarly, you'll be able to print documents from these applications with the print command, whether or not they're already running. For example: print "Bob's amazing four-color chart" with "Excel 3.0" Under 7.0, the close command will be able to close documents in some of these applications, although not all of them. That's because the "close document" Apple event that HyperCard sends is not one of the events that applications are required to support. I don't know which of the 7.0-aware applications we're hearing about now are able to understand this event, other than HyperCard 2.1 itself. Finally, just as you can launch applications with the open command, you'll be able to make them quit with the close command under 7.0. For example: close "MacWrite Pro" For those of you keeping score at home, HyperCard 2.1 is able to send any of the four required Apple events to other applications. Apple event What it means How to send it from HC 2.1 ----------- --------------------- -------------------------- 'oapp' You're newly launched open "" 'odoc' Open a document open "" with "" 'pdoc' Print a document print "" with "" 'quit' Quit close "" In addition, HyperCard 2.1 knows how to send a few of the core Apple events. 'clos' Close a document close "" with "" 'dosc' Execute a script send