FinderLaunch

A routine for sending an open documents Apple event to the Finder.  This routine provides functionality equivalent to selecting a document/file/application and choosing the open command in the Finder's file menu.  

Of interest in this example:
An illustration of how to ask the Finder to open and display a directory's window.  Also, this sample shows how to route open and launch commands through the Finder (saves your application the trouble of trying to find the correct application to open a document).


Other techniques illustrated:
The file TestFinderLaunch.c includes a brief exploration of how to use Navigation Services (falling back to StandardFile) in a way that allows you to select any visible file or folder.  

By John Montbriand.

Copyright  1999 by Apple Computer, Inc.
All rights reserved worldwide.
	
Disclaimer:
You may incorporate this sample code into your applications without restriction, though the sample code has been provided "AS IS" and the responsibility for its operation is 100% yours.  However, what you are not permitted to do is to redistribute the source as "DSC Sample Code" after having made changes. If you're going to re-distribute the source, we require that you make it clear in the source that the code was descended from Apple Sample Code, but that you've made changes.

Files:	(Code Warrior)

':FinderLaunch.prj Data:' - codewarrior pro project data.

:MPWTool: - a directory containing source or an mpw tool providing access to the FinderLaunch routine.

:obj: - object files created during the build process.

FinderLaunch.c - C code defining a routine for sending open documents events to the finder.

FinderLaunch.h - definitions for routines exported from FinderLaunch.c

FinderLaunch.prj - codewarrior pro project file that builds TestFinderLaunch.

TestFinderLaunch - sample application accessing the routine defined in FinderLaunch.c

TestFinderLaunch.c - C program allowing users to select files and folders and then passing them to the Finder.

TestFinderLaunch.h - constants and prototypes used in TestFinderLaunch.c.

TestFinderLaunch.r - MPW Rez definitions used for mpw builds.

TestFinderLaunch.rsrc - resources used in TestFinderLaunch.h

MakeFile - MPW make file that builds TestFinderLaunch.

ReadMe - see ReadMe.



