Use the methods in here to control Photoshop state.
Register a document to be closed when the modal scope exits.
Call to resume history on a target document.
commit (optional): if false, the current modified document state is dropped, and the document returns to
the state when suspendHistory was invoked.
Call to suspend history on a target document, returns the suspension ID which can be used for resumeHistory.
Unregister a document from being closed when the modal scope exits.
True if user has cancelled the modal interaction.
User can cancel by hitting the Escape key, or by pressing the "Cancel" button in the progress bar.
If assigned a method, it will be called when user cancels the modal interaction.
Call this to customize the progress bar.
This object is passed to the callback of
core.executeAsModalfor modality related APIs.Optionobject
Targetfolder
objects/options
Min Version
23.0