home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19701 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  2.1 KB

  1. Path: sparky!uunet!timbuk.cray.com!shamash!paul
  2. From: paul@svl.cdc.com (Paul Kohlmiller)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: How do you launch apps with docs?
  5. Message-ID: <50370@shamash.cdc.com>
  6. Date: 12 Dec 92 00:29:05 GMT
  7. References: <1g67hnINNd8c@darkstar.UCSC.EDU>
  8. Sender: usenet@shamash.cdc.com
  9. Lines: 31
  10.  
  11. speth@cats.ucsc.edu (James Gustave) writes:
  12.  
  13.  
  14. >  I'm writing an AppleEvent-aware application that launches other applications
  15. >with documents.  I would like to know what the recommended sequence of events
  16. >is to accomplish this.  I assume if the app is already running, that I simply
  17. >pass it an odoc event, but what if it's not running?
  18. >  On a related note, I'm wondering what info do I need to know about the app
  19. >if I want to launch a doc.  Do I need the actual FSSpec, or can I do it by
  20. >simply knowing the app's creator code? (isn't that all the Finder needs?)
  21. >  I'd appreciate it if you reference IM, that you tell me where it is in the
  22. >new IM's.  Thanks a bunch.
  23. In the new IM - Processes there is a luanch discussion at page 2-7.
  24. This does use the FSSpec. If you have the creator code you can get the file
  25. spec by going through the Desktop database (using PBDTGetAppl but I can't find 
  26. where I learned about this guy). This group has had several discussions about
  27. this and you can get past threads via ftp at ftp.cs.uoregon.edu
  28. Look around digest #185.
  29. Meanwhile, I can't do what you seem to have working okay, namely passing an
  30. odoc to an app that is running. Although I can send this event while 
  31. launching (as a launch parameter) I get a -1716 when I do an AESend of the
  32. odoc event (which I think means no such apple event).
  33. If anyone has some ideas I'd appreciate it. Meanwhile, the develop CD has some
  34. code snippets that do Launches.
  35. Paul Kohlmiller
  36. --
  37.      // Paul H. Kohlmiller             //  "Cybers, Macs and Mips"    //
  38.      // Control Data Systems, Inc.    // Internet: paul@svl.cdc.com  //
  39.      // Acronym under construction.  // America Online: Paul CDC    //
  40.      // All comments are strictly my own. I won't lie but my       //
  41.      // perception of reality is at best a personal hunch.        //
  42.