// Copyright 2007 // Written by Jeffrey Tranberry // Photoshop for Geeks Version 1.0 /* Description: This script closes the currently active document without saving. You must have an 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 // /////////////////////////// // Close the active document without saving app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);