home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14780 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!lai
  2. From: lai@Apple.COM (Ed Lai)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Apple Event driven psychosis
  5. Message-ID: <71850@apple.Apple.COM>
  6. Date: 31 Aug 92 16:30:40 GMT
  7. References: <5573@omphalos.bug.co.jp>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 26
  10.  
  11. In article <5573@omphalos.bug.co.jp> tague@omphalos.bug.co.jp (Tague Griffith ) writes:
  12. >In the application I'm writing, I want the user to be able to select a document
  13. >from a standard file dialog, and then have my application open that document
  14. >in the application program that created it.  Right now I'm trying to send an
  15. >OpenSelection apple event to the finder (for other reasons this application
  16. >must run under system 7) and have the finder send an 'odoc' to the proper
  17. >application.  Anyway, I've been unable to get this code to work so, if anyone
  18. >could mail me (no FTP capibility :-( or give me pointers to some code that
  19. >performs this function I would greatly appreciate it.  (or if there is a 
  20. >simpler means of accomplishing the same thing - I already tried the PPCLaunch
  21. >function and it didn't work).   As always, thanks in advance.----------------------------------------------------------------------------
  22.  
  23. Why don't you just send an 'odoc' directly to that application.
  24.  
  25. If the problem is that the application is not open, then lanuch the application
  26. with the 'odoc' event as the appParam.
  27.  
  28.  
  29. /* Disclaimer: All statments and opinions expressed are my own */
  30. /* Edmund K. Lai                                               */
  31. /* Apple Computer, MS37-UP                                     */
  32. /* 20525 Mariani Ave,                                          */
  33. /* Cupertino, CA 95014                                         */
  34. /* (408)974-6272                                               */
  35. zW@h9cOi
  36.  
  37.