Futurebasic/Language/Reference/on finderinfo

Revised
February, 2002 (Release 6)

Description
You establish this vector before entering your event loop. When a file is dropped onto your application's icon or one of your applications files is double-clicked from the Finder, the specified routine is called with information on how to open the file.

The routines are set up to handle up to 1024 files at a time. If this number is insufficient, you will need to change the DIM statement in the header file named "Subs Files.Incl". There are three global values maintained for this vector.

The number of files pending in the queue.

An array of file spec records. There is one file spec record for each file that needs to be opened or printed.

A boolean value that is zero if the file is to be opened and non-zero if it is to be printed.

Example: This routine establishes a function that is called when a file is dropped onto the compiled version of the application. It also shows how to determine if a file is to be printed or opened.