Details on script writing are beyond the scope of this book. If you are interested in learning more about writing scripts, I suggest that you check out the PS-Scripts forum at http://www.ps-scripts.com and download the Photoshop Scripting Guide from http://www.adobe.com/devnet/photoshop/scripting.html.
18.223.33.157