Player
Documentation
Frontier
User's Guide
Chapter 5, Verbs
Overview
Dialog Verbs
These verbs control a dialog box, including a standard Macintosh file (or "directory") dialog (i.e. the dialog that appears when opening or saving from within an application).Verbs
setDialogFolder- set the folder (and file) for the next file dialog
acceptDialog- accept the frontmost dialog
cancelDialog- cancel the frontmost dialog
Notes
- As noted in their description, acceptDialog() and cancelDialog() cannot actually identify the default or cancel buttons (if any). They type the standard Macintosh equivalents: enter and escape, which may not work in all applications.
- The verb clickDefaultButton() is provided as an alternative to acceptDialog(). While it doesn't actually do a click, it has the same effect.
- Player's dialog query verbs are documented in the section on Query Verbs.
- Player 1.0's locateFile( ) and locateFolder( ) are obsolete and no longer included in this manual. They are documented on disk in case you still need them. (They are still in the Player table and still work in Player 1.1; no change to existing scripts is required.) The new setDialogFolder( ) verb is faster and more elegant so it is probably worth the small effort of updating your existing scripts to use the new feature. The old verbs were called after opening the dialog, the new verb is best called before.
Keyboard Verbs
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.