Using the clipboard
If you are new to scripting for Photoshop, please view our Photoshop Scripting Basics tutorial for an introduction to Photoshop scripting and a few exercises about basic JavaScript. 1. Check to for an opened document. If there isn't an opened document, nothing will happen
read more