<span>Editor's Pick in Photoshop Tutorials, May 2006</span><br/>The iPod Nano is definitely a well recognized device in todayâ??s world. Why not design your on Nano image to display images on your site? Check out this tutorial to find out how.
All CRT (Cathode Ray Tube) have a refresh rate. A refresh rate defines how fast the frames are being shown. For example, if a monitor has a refresh rate of 60hz, it means that the image is being shown and updated 60 times a second. At 60hz, the monitor will flash the image 60 times every second.
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
The first thing we need to do is check to see if there is an document. To do this, we'll check to see if the current document has a length. If it doesn't, it obviously means that there are no opened documents and the script will do nothing instead of giving an error.
1. Save the current ruler units preference and change it to one you would like to work with.
var oldRulerUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
For a better understanding of the above code, please read the Setting the Ruler and Type Units tutorial.
What if we have several opened documents and want to choose only one of them to be closed? Documents are identified by the ordered they were opened in. Open several files inside Photoshop and click on the Window menu. We'll notice that the documents shown on the bottom of the menu are sorted by the....
Creating a New Photoshop Document
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.