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