Home / Articles / Adobe Photoshop / Learn How to Script Adobe Photoshop CS2

Learn How to Script Adobe Photoshop CS2

Chapter Description

This chapter demonstrates several techniques for creating scripts to use specifically with Adobe Photoshop CS2. More importantly, you'll learn how to use the Adobe Photoshop CS2 scripting references to find the objects, classes, properties, methods, and even some values (called constants or enumerations) you can use to create JavaScripts for Adobe Photoshop CS2.

Setting application preferences

Your script can set application preferences such as color picker, file-saving options, guide-grid-slice settings, and so on.

The Preferences object is a property of the Application object.

preferences.rulerUnits =Units.INCHES
preferences.typeUnits = TypeUnits.PIXELS

In the scripting reference, look up the Preferences object to view all of the settings properties you can use. Additionally, look up the Application object > preferences property.

7. Suppressing dialog boxes | Next Section Previous Section