Adobe Smoke Alarm CS3 Manuale Utente
Photoshop CS3
Adobe Photoshop CS3 Scripting Guide
Photoshop CS3 Scripting Basics 12
History State Class
The
History State
class is a palette object that keeps track of changes made to a document. Each time
you apply a change to an image, the new state of that image is added to the palette. These states are
accessible from document object and can be used to reset the document to a previous state. A history
state can also be used to fill a selection. For more information on history objects, see
accessible from document object and can be used to reset the document to a previous state. A history
state can also be used to fill a selection. For more information on history objects, see
.
Note:
In AppleScript, if you create a document and then immediately try to get history state, Photoshop
returns an error. You must first activate Photoshop—make it the front-most application—before
you can access history states.
returns an error. You must first activate Photoshop—make it the front-most application—before
you can access history states.
Document Info Class
The
Document Info
class stores metadata about a document. Metadata is any data that helps to describe
the content or characteristics of a file. For more information on document info, see
.
Path Item, Sub Path Item, and Path Point Classes
The
Path Item
class represents information about a drawing object, such as the outline of a shape, or a
curved line. The
Sub Path Item
class is contained in the
Path Item
class, and provides the actual
geometry of the shape. The
Path Point
class contains information about each point in a sub path. See
Preferences Class
The
Preferences
class allows you to access and set the user preference settings. See
Notifier Class
The
Notifier
object ties an event to a script. For example, if you would like Photoshop CS3 to
automatically create a new document when you open the application, you could tie a script that creates a
Document
object to an
Open Application
event. For more information on notifiers, see
.
Count Item Class
The
Count Item
object provides scripting support for the Count Tool.
Color Sampler Class
The
Color Sampler
object provides scripting support for the Color Sampler Tool.
Measurement Scale Class
The
Measurement Scale
object provides scripting support for the new Measurement Scale feature that
allows you to set a scale for your document.
The Containment Hierarchy and the Photoshop CS3 User Interface
The following table provides describes how each object relates to the Photoshop CS3 user interface.