Skip to content

Instantly share code, notes, and snippets.

@iKlsR
Created October 19, 2014 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iKlsR/0417ca08750925dd4b56 to your computer and use it in GitHub Desktop.
Save iKlsR/0417ca08750925dd4b56 to your computer and use it in GitHub Desktop.
close all open ps tabs without prompting to save
function closeCurrentWithoutSaving() {
if (app.activeDocument.length != 0)
app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
}
function closeAllWithoutSaving() {
while (documents.length != 0) {
for (var i = 0x00; i < documents.length; i++)
documents[i].close(SaveOptions.DONOTSAVECHANGES);
}
}
closeAllWithoutSaving();
// closeCurrent();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment