// closeDocument.jsx // Copyright 2006-2008 // Written by Jeffrey Tranberry // Photoshop for Geeks Version 2.0 /* Description: A script to close the activeDocument without saving */ // enable double clicking from the // Macintosh Finder or the Windows Explorer #target photoshop // Make Photoshop the frontmost application app.bringToFront(); ///////////////////////// // SETUP ///////////////////////// ///////////////////////// // MAIN ///////////////////////// // Close without saving app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); ///////////////////////// // FUNCTIONS /////////////////////////