User Guide
Core objects 13
Core objects
This section describes the six core objects that are always available: Dialogs, Document,
Errors, Files, Find, and System.
Dialogs object
The following table lists the methods of the Dialogs object, along with their data types and,
where appropriate, acceptable values and notes.
prompt(caption, text) string, string Prompts the user (with the string that is
specified by text) to enter a string in a
modal dialog box; the dialog box is titled
with the string that is specified by caption.
Returns the string entered if OK is clicked,
null if Cancel is clicked.
write(arg1, arg2, ..., argN) string Same as WRITE_HTML; WRITE_HTML was
created to let you differentiate HTML
output calls from other JavaScript calls in
your code.
WRITE_CSS
string Available only when exporting. Writes the
CSS as an external file.
WRITE_HTML(arg1, arg2, ...,
argN)
string Available only when exporting. Converts
each argument to a string and writes it to
the HTML output file. To enter an end-of-
line character, use
"\n"; this is converted to
the correct line ending for your platform.
For more information, see “HTML export
objects” on page 80.
NOTE
For information on how to format nonstandard data types, such as rectangle or point,
see “Formatting nonstandard data types” on page 11.
Method Data type Notes
runEditGrids()
none Opens the Edit Grids dialog box.
runEditGuides()
none Opens the Edit Guides dialog box.
runNumericTransform()
none Opens the Numeric Transform dialog box.
Method Data type Notes