LaunchWithDoc

Last Revision:
Version 1.0, 2003-07-22
First Version
Build Requirements:
Runtime Requirements:
Carbon

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