Adobe InDesign CS2 (4.0) Object Model JS: Window

InDesign CS2

Class

Window

 

A window.

Superclass of LayoutWindow, StoryWindow

QuickLinks

bringToFront, close, getElements, maximize, minimize, restore, select, toSource, toSpecifier

Hierarchy

Application | Document
Window
LayoutWindow | StoryWindow

Properties

PropertyTypeAccessDescription
bounds Array of number r/wThe bounds of the window (specified in pixels) in the form [top, left, bottom, right].
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.

Array of Object getElements ()
Resolves the object specifier, creating an array of object references.

void maximize ()
Maximizes the window.

void minimize ()
Minimizes the window.

void restore ()
Restores the window.

void select (selectableItems: any[, existingSelection: SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the specified object(s).

ParameterTypeDescription
selectableItems Array of Objects
NothingEnum
Object
SelectAll
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE_WITH
The selection status of the Window in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH)

string toSource ()
Generates a string which, if executed, will return the Window.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.activeWindow

Used in:

array of Window Windows.itemByRange (from: any, to: any)

Window Windows.nextItem (obj: Window)

Window Windows.previousItem (obj: Window)

Return

Window Windows.add ([withProperties: Object])

Window Windows.anyItem ()

Array of Window Windows.everyItem ()

Window Windows.firstItem ()

Window Windows.item (index: any)

Window Windows.itemByName (name: string)

Array of Window Windows.itemByRange (from: any, to: any)

Window Windows.lastItem ()

Window Windows.middleItem ()

Window Windows.nextItem (obj: Window)

Window Windows.previousItem (obj: Window)

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