- Viewing Photoshop CS2 objects, commands, and methods
- Creating new objects in a script
- Setting the active object
- Opening a document
- Saving a document
- Setting application preferences
- Suppressing dialog boxes
- Working with the Adobe Photoshop CS2 Object Model
- Working with color objects
- Working with filters
- Understanding clipboard interaction
- Working with units
- Advanced scripting
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.