Path: utzoo!utgpu!watmath!clyde!att!rutgers!apple!well!odawa From: odawa@well.UUCP (Michael Odawa) Newsgroups: comp.sys.mac.programmer Subject: Re: Passing finder information during a "Launch" command Summary: System Heap, Inside Mac II-56 Keywords: Launch Message-ID: <7774@well.UUCP> Date: 28 Nov 88 16:25:44 GMT References: <2590@munnari.oz> <64450@ti-csl.CSNET> Reply-To: odawa@well.UUCP (Michael Odawa) Organization: Simple Software, Mill Valley, CA Lines: 15 In article <2590@munnari.oz> iand@munnari.oz (Ian Robert Dobson) writes: >I am writing an application in which I want to be able to launch (NOT >sublaunch) to other applications while passing the same information that >the Finder does when it launches an application (so I can specify a >document to open). Since the application heap will get cleared when my >application dies, how do I ensure that the finder information sticks >around. The information you are referring to is contained in a block which is pointed to by the AppParmHandle ($AEC). The block is located in the System Heap, so it hangs aroung automatically when the Application Heap is reinitialized. What you want to do is grab the block, resize it, and then stuff it with your own values. See the structure described in IM II-56.