
686
ADOBE FRAMEMAKER SCRIPTING GUIDE
Function Summary
Last updated 9/26/2011
Returns
int
Syntax
ScrollBox(title, stringslist, _default)
Parameters
ChooseFile
Description
Displays dialog boxes similar to a FrameMaker’s Open and Save dialog boxes. The method displays directories and
files in a scroll list and allows the user to choose a file or directory.
You can set the following values for
mode
:
The method returns 0 if the user clicked Open, Select, Use, or Save; a nonzero value if the user clicked Cancel or an
error occurred.
On failure, the method assigns the following value to
FA_errno
:
Returns
int
Syntax
ChooseFile(title, directory, stuffVal, mode)
Error
Reason
Constants.FE_Transport (-1)
The user clicked Cancel, or a transport error occurred.
Parameter name
Data Type
Optional
Description
title
string
No
The title that appears on the dialog box.
stringslist
Strings
No
The list of items to appear in the scroll list.
_default
int
No
The index of the item that is selected when the dialog box first
appears. For no default, specify -1.
Mode Constant
Dialog Box Type
Constants.FV_ChooseSelect (0)
Dialog box that allows the user to choose a file by clicking Select.It provides an input field into
which the user can type a filename.
Constants.FV_ChooseOpen (1)
Dialog box that allows the user to choose a file by clicking Open.It provides an input field into which
the user can type a filename.
Constants.FV_ChooseSave (2)
Dialog box that allows the user to save a file. It provides Save and Cancel buttons and an input field.
Constants.FV_ChooseOpenDir (3)
Dialog box that allows the user to choose a directory.
Error
Reason
Constants.FE_Transport (-1)
A transport error occurred.