// Copyright 2007 // Written by Jeffrey Tranberry // Photoshop for Geeks Version 1.0 /* Description: This script closes all of the currently open documents without saving. You must have at least open document in order for this script to run */ // enable double clicking from the // Macintosh Finder or the Windows Explorer #target photoshop // Make Photoshop the frontmost application // in case we double clicked the file app.bringToFront(); /////////////////////////// // MAIN // /////////////////////////// while (app.documents.length >=1){ // Close the active document without saving app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); }