window.hide

Syntax window.hide (title)

Params title is the name of the window you wish to hide.

Action Hides the window.

Returns True if the window was open and could be hidden, false otherwise.

Examples window.hide (window.frontMost ())

   » true

There's always a frontmost window. Be careful not to script this with only the Quick Script and Fontier.root windows open because it will hide your Fontier.root window. To get the Fontier.root window back if that does happen, select its title
(usually "Frontier.root") from the Window menu.

Make sure the examples window is closed. Now type and execute:
window.hide ("examples")


   » false

The Window wasn't open, therefore it couldn't be hidden.

Notes Attempting to hide a hidden window does not cause any problem. Frontier will return true.

The window to be hidden must have been previously opened.

You can use window.isVisible or window.isHidden to determine whether a window is visible or not.

See Also window.show

window.isHidden

Discuss