// flatten.jsx // Copyright 2006-2008 // Written by Jeffrey Tranberry // Photoshop for Geeks Version 2.0 /* Description: A script to flatten the activeDocument */ // enable double clicking from the // Macintosh Finder or the Windows Explorer #target photoshop // Make Photoshop the frontmost application app.bringToFront(); ///////////////////////// // SETUP ///////////////////////// ///////////////////////// // MAIN ///////////////////////// // Flatten the document in case the file type we want to save to requires a flat doc app.activeDocument.flatten(); ///////////////////////// // FUNCTIONS /////////////////////////