home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15021 next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.3 KB

  1. Path: sparky!uunet!gatech!darwin.sura.net!jvnc.net!rutgers!zeus.ieee.org!fsbbs!f204.n2603.z1.ieee.org!Tommy.Brown
  2. From: Tommy.Brown@f204.n2603.z1.ieee.org (Tommy Brown)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Apple Event driven psychosis
  5. Message-ID: <15858.2AA5725C@zeus.ieee.org>
  6. Date: 2 Sep 92 00:04:03 GMT
  7. Sender: news
  8. Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY
  9. Lines: 24
  10.  
  11. Have you tried using the LaunchApplication trap to open the needed
  12.  
  13. application, and then sending the app an odoc event yourself? This is kosher
  14.  
  15. according to Inside Mac and would probably be easier. I'm not sure that the
  16.  
  17. Finder's 'open selection' event would be appropriate, unless you made sure
  18.  
  19. that the current selection in the Finder was the file that you wanted. If you
  20. do not know what application the document belongs to, you'd have to use the
  21.  
  22. Desktop manager. I know the above method works, as I've helped someone write
  23. a
  24.  program which uses this method. You would use LaunchApplication, which
  25. returns
  26.  a Process Serial Number. Save the process serial number and convert
  27. it into an
  28.  address desc record with the AppleEvent Manager, and then send an
  29. odoc event
  30.  to that application. 
  31.  
  32. --  
  33. =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
  34.  Tommy Brown - Internet: Tommy.Brown@f204.n2603.z1.ieee.org
  35.