while (app.documents.length >=1){ app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); }