window.zoom

Syntax window.zoom (title)

Params title is the name of the window you wish to zoom out or in depending on its current zoomed state.

Action If the window is zoomed out to display its entire contents (or the size of the screen, whichever is smaller), zooms it back to the last user-set position and size. If the window is at a user-set position and size, changes its size to show all of its

contents or to the size of the screen, whichever is smaller.

Returns True if the window is open and has a zoom box, false otherwise.

Examples window.zoom (window.frontmost ())

   » true

Notes The effect of this verb is the same as clicking on a window's zoom box.

See Also window.setSize

window.setPosition

window.getSize

window.getPosition

Discuss