home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18208 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.4 KB

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