Window

A window.

Properties

Property Type Access Description
bounds Array of number r/w 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 any readonly The parent of the Window (a Document or Application).
properties Object r/w A property that allows setting of several properties at the same time.
selection Array of Object r/w The selected object(s). Can also accept: Object or NothingEnum enumerator.

Methods

void bringToFront ()
Brings the Window to the front of its layer.

void close ()
Closes the Window.

Array of WindowgetElements ()
Resolves the object specifier, creating an array of object references.

void maximize ()
Maximizes the window.

void minimize ()
Minimizes the window.

void restore ()
Restores the window.

void select (selectableItems:
any[, existingSelection:
SelectionOptions=REPLACE_WITH ])
Selects the specified object(s).

Parameter Type Description
selectableItems Object
Array of Objects
NothingEnum
SelectAll
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.
existingSelection SelectionOptions
:
ADD_TO
REMOVE_FROM
REPLACE_WITH
The selection status of the Window in relation to previously selected objects. (Optional) (default: REPLACE_WITH )

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

Windows.previousItem (

obj:
Window )

Windows.nextItem (

obj:
Window )

Returned by:

Array of Window Window .getElements (

)

Window Windows.add (
[withProperties:
Object]
)

Window Windows.anyItem (

)

Array of Window Windows.everyItem (

)

Window Windows.firstItem (

)

Window Windows.item (
index:
any
)

Window Windows.itemByName (
name:
string
)

Array of Window Windows.itemByRange (
from:
any, to:
any
)

Window Windows.lastItem (

)

Window Windows.middleItem (

)

Window Windows.nextItem (
obj:
Window
)

Window Windows.previousItem (
obj:
Window
)

Leave a Comment

Previous post:

Next post: