Hi,
I´m trying to close the active Project via UXP but can´t really find out on how to define the closeProjectOptions.
Tried something like this:
var activeProject = await ppro.Project.getActiveProject();
await activeProject.close({promptIfDirty: true, showCancelButton: false, isAppBeingPreparedToQuit: false, saveWorkspace: true});
or this:
const activeProject = await ppro.Project.getActiveProject();
const opts = new ppro.CloseProjectOptions()
.setPromptIfDirty(true)
.setShowCancelButton(true)
.setSaveWorkspace(true)
.setIsAppBeingPreparedToQuit(false);
await project.close(opts);
But nothing seems to work so far. Any ideas on this!
Thanks for your help!
Cheers,
Jannis