Window

A window.

Methods:

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

Objects:

NothingEnum, Number, Object, String,

Hierarchy:

Class: Window

Subclasses: LayoutWindow | StoryWindow

Property Listing

Property

Type

Access

Description

bounds

Array of Number

read/write

The bounds of the window (specified in pixels) in the form [top, left, bottom, right].

index

Number

readonly

The index of the Window within its containing object.

name

String

readonly

The name of the Window.

parent

Application

Document

readonly

The parent of the Window (a Document or Application).

properties

Object

read/write

A property that allows setting of several properties at the same time.

selection

Array of Objects

Object

NothingEnum.NOTHING

read/write

The selection. Can return: Object, Array of Objects or NothingEnum enumerator.

Method Listing

undefined bringToFront ()

Brings the Window to the front.

undefined close ()

Closes the Window.

Object getElements ()

Resolves the object specifier, creating an array of object references.

undefined maximize ()

Maximizes the window.

undefined minimize ()

Minimizes the window.

undefined restore ()

Restores the window.

undefined select (selectableItems:Array of Varies Objects NothingEnum Object SelectAll, [existingSelection:SelectionOptions=SelectionOptions])

Selects the specified object(s).

Parameter

Type

Description

selectableItems

Array of Objects

NothingEnum.NOTHING

Object

SelectAll

SelectAll.ALL

The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.

existingSelection

SelectionOptions

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.

Object of

Application.activeWindow

Return

Windows.add()

Windows.anyItem()

Windows.everyItem()

Windows.nextItem()

Windows.previousItem()

Windows.item()

Windows.itemByName()

Windows.itemByRange()

Windows.firstItem()

Windows.lastItem()

Windows.middleItem()