close([saveOptions], [file])
Closes the current document. If no saveOptions
argument is used, the user will be asked if they want to save or not.
Type: function
Parameter(s):
- saveOptions {} Optional:
The InDesign SaveOptions constant or either true for triggering saving before closing or false for closing without saving.
- file {File} Optional:
The InDesign file instance to save the document to.