photoshop scripting close photoshop code example Example: photoshop scripting close photoshop app.activeDocument.close();