GetAppFiles
GetAppFiles Get information about files selected in the Finder short index ; specifies which file to query
GetAppFiles obtains the filename, type, and volume of one of the files selected by the user when the Finder started your application.
index specifies which file you want to query. It should range from 1 to the
fileStuff is the address of a 264-byte AppFile structure. Upon return, it contains information about the index-th file selected when the Finder
started your application.
Notes: When a user double-clicks a document whose FInfo.fdCreator field (see GetFInfo) contains your signature, your application will begin executing. obtain the information needed to open that document.
In the event that the user selected two or more of your documents, and then
several times and open each of the selected documents. See CountAppFiles for an example.
Note: The files are indexed in the order the user selected them. See AppFile for a description of the information returned by this call. GetAppParms returns a handle to a block of data that contains this same application file information - in a slightly different form.