Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 1 - Introduction to File Management / File Management Reference
Application Launch File Routines /


CountAppFiles

You can use the CountAppFiles 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
The CountAppFiles 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. The message parameter contains one of these constants:

CONST
   appOpen  =  0;    {open the document(s)}
   appPrint =  1;    {print the document(s)}

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996