// Copyright 2007 // Written by Jeffrey Tranberry // Photoshop for Geeks Version 1.0 /* Description: This script is a template script that will process the layer stack of the currently active document , starting from the top and working down. Note: this script will not recurse through groups. 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 // /////////////////////////// // Start at the top of the layers stack and select each // layer in turn for (var i = 0; i < activeDocument.layers.length; i++) { activeDocument.activeLayer = activeDocument.layers[i]; ////////////////////////////////////////// // Put all your processing functions... // ////////////////////////////////////////// // Applies Gaussian Blur to the active layer // using a radius of "3" app.activeDocument.activeLayer.applyGaussianBlur(1); //////////////////////////////////////////////// // ...in the area between these two comments. // //////////////////////////////////////////////// }