Window

A window.

Methods:

bringToFront, close, maximize, minimize, restore, select

Objects:

NothingEnum, Number, Object, String,

Hierarchy:

Class: Window

Subclasses: LayoutWindow | StoryWindow

Property Listing

Property

Type

Access

Description

bounds

Array of Number

Array of String

read/write

The bounds of the Window, in the format [y1, x1, y2, x2].

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.

undefined maximize ()

Maximizes the window.

undefined minimize ()

Minimizes the window.

undefined restore ()

Restores the window.

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

Select one or more objects.

Parameter

Type

Description

selectableItems

Array of Objects

Object

NothingEnum.NOTHING

The object(s) to select. Can accept: Object, Array of Objects or NothingEnum enumerator.

existingSelection

SelectionOptions

SelectionOptions.ADD_TO

SelectionOptions.REMOVE_FROM

SelectionOptions.REPLACE

How to handle the existing selection (Optional)

(default: SelectionOptions.REPLACE)

Object of

Application.activeWindow

Return

Windows.add()