Adobe InDesign CS (3.0) Object Model JS: Dialog

InDesign CS

Class

Dialog

 A dialog.

QuickLinks

destroy, extractLabel, insertLabel, show

Hierarchy

Application
Dialog
DialogColumn

Properties

PropertyTypeAccessDescription
canCancelbool r/wIf true, creates a Cancel button in the dialog that allows users to close the dialog without saving any selections. If false, the dialog contains an OK button but no Cancel button.
dialogColumnsDialogColumns readonlyA collection of dialog columns.
idnumber readonlyThe unique ID of the Dialog.
indexnumber readonlyThe index of the Dialog within its containing object.
labelstring r/wA property that can be set to any string.
namestring r/wThe name of the Dialog.
parentApplication readonlyThe parent of the Dialog (a Application).
propertiesObject r/wA property that allows setting of several properties at the same time.

Methods

Instances

void destroy ()
Destroys the dialog object. Note: Dialog objects remain in memory until you destroy them or quit the program.

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

bool show ()
Displays the dialog.

Return

Dialog Dialogs.add ([withProperties: Object])

Jongware, 27-Jun-2010 v3.0.3dContents :: Index