The WINDOW() function returns the desired coordinate of the specified window, and can have one or two parameters.
Like all Functions, it can be used only in a numeric calculation field.
With two parameters, the first parameter specifies which window in the front application to operate on. With only one parameter, the Index is assumed to be the window of the Action in which the WINDOW() function is used (like the Manipulate a Window), or the frontmost window if the Action does not refer to a window.
The first parameter, Index, which is optional, may be:
The second parameter, Coordinate
, specifies the desired coordinate to be returned, and can be: