|
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.
|