GetAppFiles
You can use the GetAppFiles procedure to retrieve information about each file selected at application startup for opening or printing.
PROCEDURE GetAppFiles (index: Integer; VAR theFile: AppFile);
index
- The index of the file whose information is returned.
- theFile
- A structure containing the returned information.
DESCRIPTION
The GetAppFiles procedure returns information about a file that was selected when your application was started up (as listed in the Finder information). The index parameter indicates the file for which information should be returned; it must be between 1 and the number returned by CountAppFiles, inclusive.