Adobe InDesign CS (3.0) Object Model JS: Window

InDesign CS

Class

Window

 

A window.

Superclass of LayoutWindow, StoryWindow

QuickLinks

bringToFront, close, maximize, minimize, restore, select

Hierarchy

Application | Document
Window
LayoutWindow | StoryWindow

Properties

PropertyTypeAccessDescription
bounds Array of Measurement Unit (Number or String) r/wThe bounds of the Window, in the format [y1, x1, y2, x2].
indexnumber readonlyThe index of the Window within its containing object.
namestring readonlyThe name of the Window.
parentApplicationDocument readonlyThe parent of the Window (a Document or Application).
propertiesObject r/wA property that allows setting of several properties at the same time.
selection Array of Objects
NothingEnum
Object
r/wThe selection. Can return: Object, Array of Objects or NothingEnum enumerator.

Methods

Instances

void bringToFront ()
Brings the Window to the front.

void close ()
Closes the Window.

void maximize ()
Maximizes the window.

void minimize ()
Minimizes the window.

void restore ()
Restores the window.

void select (selectableItems: any[, existingSelection: SelectionOptions=SelectionOptions.REPLACE])
Select one or more objects.

ParameterTypeDescription
selectableItems Array of Objects
NothingEnum
Object
The object(s) to select. Can accept: Object, Array of Objects or NothingEnum enumerator.
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE
How to handle the existing selection (Optional) (default: SelectionOptions.REPLACE)

Element of

Application.activeWindow

Return

Window Windows.add ([withProperties: Object])

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