Last active
August 29, 2015 14:10
-
-
Save Hoikohroh/e68f1c32d2d7373994a2 to your computer and use it in GitHub Desktop.
Adobe Photoshop Script: Close unselected documents.
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
var Doc = app.activeDocument; | |
for (var i = (app.documents.length - 1); i >= 0; i --){ | |
var chkDoc = app.documents[i]; | |
if (chkDoc !== Doc){ | |
//!! Important !! Mode: DONOTSAVECHANGES !!// | |
chkDoc.close(SaveOptions.DONOTSAVECHANGES); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment