Created
October 19, 2014 22:27
-
-
Save iKlsR/0417ca08750925dd4b56 to your computer and use it in GitHub Desktop.
close all open ps tabs without prompting to save
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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