close()

app.project.close(closeOptions)

Description

Closes the project with the option of saving changes automatically, prompting the user to save changes or closing without saving changes.

Parameters

closeOptions Action to be performed on close. A Clos eOp t ions enumerated value, one of:
CloseOptions.DO_NOT_SAVE_CHANGES : Close without saving.
CloseOptions.PROMPT_TO_SAVE_CHANGES : Prompt for whether to save changes before close.
CloseOptions.SAVE_CHANGES: Save automatically on close.

Returns

Boolean. True on success. False if the file has not been previously saved, the user is prompted, and the user cancels the save.

Other Tags

Posted in Project object and tagged , , , , , , , , , .