Adobe InDesign CS2 (4.0) Object Model JS: Windows

InDesign CS2

Class

Windows

 A collection of windows.

QuickLinks

add, anyItem, count, everyItem, firstItem, item, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Window add ([withProperties: Object])
Creates a new Window.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new Window (Optional)

Window anyItem ()
Returns any Window in the collection.

number count ()
Displays the number of elements in the Window.

Array of Window everyItem ()
Returns every Window in the collection.

Window firstItem ()
Returns the first Window in the collection.

Window item (index: any)
Returns the Window with the specified index or name.

ParameterTypeDescription
indexLong
String
The index or name. Can accept: Long or String.

Window itemByName (name: string)
Returns the Window with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Window itemByRange (from: any, to: any)
Returns the Windows within the specified range.

ParameterTypeDescription
fromLong
String
Window
The Window, index, or name at the beginning of the range. Can accept: Window, Long or String.
toLong
String
Window
The Window, index, or name at the end of the range. Can accept: Window, Long or String.

Window lastItem ()
Returns the last Window in the collection.

Window middleItem ()
Returns the middle Window in the collection.

Window nextItem (obj: Window)
Returns the Window whose index follows the specified Window in the collection.

ParameterTypeDescription
objWindowThe Window whose index comes before the desired Window.

Window previousItem (obj: Window)
Returns the Window with the index previous to the specified index.

ParameterTypeDescription
objWindowThe index of the Window that follows the desired Window.

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

Element of

Application.windows

Document.windows

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