Windows

A collection of windows.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Window [] (index:Number)

Returns the Window with the specified index.

Parameter

Type

Description

index

Number

The index.

Window add (withProperties:Object)

Creates a new Window.

Parameter

Type

Description

withProperties

Object

Initial 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.

Window everyItem ()

Returns every Window in the collection.

Window firstItem ()

Returns the first Window in the collection.

Window item (index:Varies LongInteger String)

Returns the Window with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

Window itemByName (name:String)

Returns the Window with the specified name.

Parameter

Type

Description

name

String

The name.

Window itemByRange (from:Varies LongInteger Window String, to:Varies LongInteger Window String)

Returns the Windows within the specified range.

Parameter

Type

Description

from

LongInteger

Window

String

The Window, index, or name at the beginning of the range. Can accept: Window, Long Integer or String.

to

LongInteger

Window

String

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.

Parameter

Type

Description

obj

Window

The Window whose index comes before the desired Window.

Window previousItem (obj:Window)

Returns the Window with the index previous to the specified index.

Parameter

Type

Description

obj

Window

The index of the Window that follows the desired Window.

String toSource ()

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

Object of

Application.windows

Document.windows