application-file-handler in System Menus
When the current eventspace is the initial eventspace, this procedure retrieves or installs a procedure that is called under Mac OS X and Windows when the application is running and user double-clicks an application-handled file or drags a file onto the application's icon. The procedure is always called in the initial eventspace's handler thread (as a callback), and the argument is a filename.
The default handler queues a callback to the
on-drop-file method of the most-recently activated frame in the main eventspace, if
drag-and-drop is enabled for that frame.
When the application is not running and user double-clicks an application-handled file or drags a file onto the application's icon, the filename is provided as a command-line argument to the application.
(application-file-handler)-> procedure of one argument: a pathIf the current eventspace is the initial eventspace, returns the current handler, otherwise returns
void.
(application-file-handler-> voidhandler-proc)
handler-proc: procedure of one argument: a pathIf the current eventspace is the initial eventspace, sets the current handler, otherwise does nothing.