home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rutgers!cmcl2!sbcs.sunysb.edu!csws17.ic.sunysb.edu!rhorn
- From: rhorn@csws17.ic.sunysb.edu (Robert Horn)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: processes and passing files to open...
- Message-ID: <1992Nov9.224655.15423@sbcs.sunysb.edu>
- Date: 9 Nov 92 22:46:55 GMT
- References: <1djv2gINNjhd@mthvax.cs.miami.edu> <1992Nov9.001906.7771@netcom.com>
- Sender: usenet@sbcs.sunysb.edu (Usenet poster)
- Organization: State University of New York at Stony Brook
- Lines: 35
- Nntp-Posting-Host: csws17.ic.sunysb.edu
-
- In article <1992Nov9.001906.7771@netcom.com> leonardr@netcom.com (Leonard Rosenthol) writes:
- >In article <1djv2gINNjhd@mthvax.cs.miami.edu> rsherman@mthvax.cs.miami.edu (Roby Sherman) writes:
- >>Hi.
- >>
- >>Under System 7, is it possible to tell the Process Manager what files to
- >>open after starting a process? IE: I want Stuff-It Deluxe to launch and
- >>then open a certain file. Is there any way to do this without Apple
- >>Events?
- >>
- > Why would you want to do this WITHOUT Apple events?? Using AE's is
- >the correct way to do this - in fact you can even pass the "open document"
- >event along with the _LaunchApplication call if you want.
- >
-
- How? According to IM6, if you set the launchAppParameters to NIL, the system will
- automaticly generate an OpenApplication event and send that to the newly launched
- application. It also says that you can pass any high level event through the
- launchAppParameters field, and says to look in the Event Manager chapter for more
- information. To the best of my knowledge, neither the Event Manager chapter, nor the
- AppleEvent chapter show the structure of the high level event, and poking around in
- Macsbug as an application is being launched with a document seems to show that the
- High Level event does not correspond to any of the AppleEvent structures (there does
- not appear to be an AEDesc or AEKeyDesc lying about, there does, however, appear to be
- a "flattended" AppleEvent (Handles in the structure are replaced by the things in the
- handles, i think), although I may well be messing up my macsbugging, and haven't
- really had the time to experiment with assorted lumps of code to see what works.
-
- Am I missing something really obvious? Is there a snippet that I should be looking at?
-
- Any help would be appreciated, (if only to satisfy my curiousity)
- Robb
-
- --
- rhorn@ic.sunysb.edu Never choose a college because it has a duckpond.
- Would you like to touch my wombat? Send me hate mail, I love it.
-