Important: The information in this document is obsolete and should not be used for new development.
CountAppFiles
You can use theCountAppFiles
procedure to determine how many documents (if any) the user has selected at application launch time for opening or printing.
PROCEDURE CountAppFiles (VAR message: Integer; VAR count: Integer);
- message
- The action to be performed on the selected files.
- count
- The number of files selected.
DESCRIPTION
TheCountAppFiles
procedure deciphers the Finder information passed to your application and returns information about the files that were selected when your application was started up. On exit, the count parameter contains the number of selected files, and the message parameter contains an integer that indicates whether the files are to be opened or printed. Themessage
parameter contains one of these constants:
CONST appOpen = 0; {open the document(s)} appPrint = 1; {print the document(s)}