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