Adobe InCopy CS5.5 (7.5) Object Model JS: Windows

InCopy CS5.5

Class

Windows

 A collection of windows.

See also Window.

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 [] (index: number)
Returns the Window with the specified index.

ParameterTypeDescription
indexnumberThe index.

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: varies)
Returns the Window with the specified index or name.

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

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

ParameterTypeDescription
namestringThe name.

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

ParameterTypeDescription
fromLong Integer
String
Window
The Window, index, or name at the beginning of the range. Can accept: Window, Long Integer or String.
toLong Integer
String
Window
The Window, index, or name at the end of the range. Can accept: Window, Long Integer 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, 29-Apr-2012 v3.0.3iContents :: Index