app.closeWindow
| Syntax |
app.closeWindow ()
|
| Params |
None.
|
| Action |
Closes the target window. If changes have been made, and dialogs are enabled (see enableDialogs) a dialog confirming that the user wants to discard changes to the file is displayed. If the user presses cancel, the verb returns false, and the script should terminate. If the user confirms by clicking on OK, the window is closed and the verb returns true. To close a window even if changes have been made, call app.enableDialogs (false) before calling app.closeWindow. The target window will close without a confirmation dialog, and the verb returns true if it was able to close the file.
|
| Returns |
True if the application closed the target window, false otherwise.
|
| Examples |
app.start ("MinApp"); app.closeWindow () » true
app.start ("MinApp"); app.newWindow ("")
|
| Platform Notes |
This verb is only implemented in the Mac OS version of Frontier.
|
| Notes |
If app.closeWindow was able to close the window, it sets the target window to the empty string. In the window has changed since it was opened or created, the application comes to the front and a confirmation dialog appears. To disable this interaction, call app.enableDialogs (false).
|
| See Also |
app.newWindow
|