C
2: Photoshop Scripting Basics
HAPTER
Path Item, Sub Path Item, and Path Point classes
The
Path Item
curved line. The
of the shape. The
PathItem object" on page
Preferences class
The
Preferences
document preferences" on page
Notifier class
The
Notifier
create a new document when you open the application, you could tie a script that creates a
object to an
page
48.
Count Item class
The
Count Item
Color Sampler class
The
Color Sampler
Measurement Scale class
The
Measurement Scale
allows you to set a scale for your document.
The containment hierarchy and the Photoshop user interface
The following table provides describes how each object relates to the Photoshop user interface.
Object name Description
Application
Document
Selection
class represents information about a drawing object, such as the outline of a shape, or a
class is contained in the
Sub Path Item
class contains information about each point in a sub path. See
Path Point
49.
class allows you to access and set the user preference settings. See
61.
object ties an event to a script. For example, if you would like Photoshop to automatically
event. For more information on notifiers, see
Open Application
object provides scripting support for the Count Tool.
object provides scripting support for the Color Sampler Tool.
object provides scripting support for the new Measurement Scale feature that
The Photoshop application.
The working object, in which you create layers,
channels, actions, and so on. In a script, you
name, open, or save a document as you would
a file in the application.
The selected area of a layer or document.
class, and provides the actual geometry
Path Item
"Using Notifier objects" on
To create this object without using a
script
Start the Photoshop application.
In Photoshop, choose File > New or
File > Open.
Choose the marquee or lasso tools and
drag your mouse.
Photoshop Object Model 14
"Using the
"Working with
Document