Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-07-22

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“LaunchWithDoc.zip”, 12.3K)
Download Sample (“LaunchWithDoc.dmg”, 72.1K)


The smallest LaunchAplication example I could come up with. this launches an application with a 'odoc' AppleEvent this little bit of code here uses two Standard File calls to get the application to launch and the file to launch with, you will of course want to replace these with whatever you want to do NOTE: This also works for launching non-System 7 applications. If the Finder sees an 'odoc' or 'pdoc' Apple event in the launch block and the application being launched is NOT system 7 aware, the Finder coerces the Apple event into puppetstrings. So you don't need to special case for non-7.0 applications. Pretty neat, huh? Requires: System 7.0 Keywords: Process Manager, 'odoc' AppleEvent

Document Revision History

Date Notes
2003-07-22First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.