Skip to main content
Inspiring
December 15, 2015
Answered

Force close without saving

  • December 15, 2015
  • 1 reply
  • 847 views

Two part question:

What is Premiere writing upon closing a document?
It's getting in the way of workflows that I'm developing, as it's trying to write to a write-protected file. I can't diff between the before and after files to find the difference since the prproj is binary.

And if you're curious what the message is: If I run app.project.closeDocument() on a perforce file that is not checked out(read-only), the error that occurs is:

"Could not open the project file with write access. The file may be locked or you may not have permission to write to this location.

Select 'Save As' from the File menu to save the project to a new location."

Second part:
app.project.closeDocument() - is there a force argument that can be handed to this? or a completely different command that will say "when I close you, don't save any information to the file?"

This topic has been closed for replies.
Correct answer Bruce Bullis

What is being saved = the project, specifically anything that has changed since last save. Also, any XMP changes to project items will be flushed to the file system at that time.

Additional param info:

var saveDocBeforeClosing = 1;

var promptIfDirty = 1;

app.project.closeDocument(saveDocBeforeClosing, promptIfDirty);

1 reply

Inspiring
December 16, 2015

app.project.closeDocument(false)

Still looking for an answer for WHAT is being saved, though.

Bruce Bullis
Bruce BullisCorrect answer
Legend
December 16, 2015

What is being saved = the project, specifically anything that has changed since last save. Also, any XMP changes to project items will be flushed to the file system at that time.

Additional param info:

var saveDocBeforeClosing = 1;

var promptIfDirty = 1;

app.project.closeDocument(saveDocBeforeClosing, promptIfDirty);