Object Elements And Collections - Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
The following table provides information about each object.
Object Name
Application
Document
Selection
Path Item
Channel
Art Layer
Layer Set
Document Info
Notifier
History State

Object Elements and Collections

When you add an object to your script, the object is included automatically in an object element
(AppleScript) or collection (VBScript, JavaScript). The objects in a single element or collection are identical
types of objects. For example, each
collection; each
Description
The Photoshop CS2 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.
A drawing object, such as the outline of a shape or a
straight or curved line
Pixel information about an image's color
A layer class within a document that allows you to
work on one element of an image without affecting
other elements in the image.
A collection of
Art Layer
Metadata about a
Document
Note:
Metadata is any data that helps to describe
the content or characteristics of a file, such
filename, creation date and time, author
name, the name of the image stored in the
file, etc.
Notifies a script when an event occurs; the event
then triggers the script to execute. For example,
when a user clicks an OK button, the notifier object
tells the script what to do next.
Stores a version of the document in the state the
document was in each time you saved it.
Note:
You can use a
object or to reset the document
Selection
to a previous state.
Channel
object belongs to an
Art Layer
Photoshop CS2
objects.
object.
object to fill a
History State
object in your script belongs to a
Art Layers
To create this object without
using a script:
Start the Photoshop CS2
application.
In Photoshop CS2, choose
File > New or File > Open.
Choose the marquee or lasso
tools and drag your mouse.
Choose the path selection or
pen tools and draw a path with
the mouse.
Choose Window > Channels.
Choose Layer > New > Layer
or Window > Layers.
Choose Layer > New >
Layer Set.
Choose File > File Info.
Choose File > Scripts > Script
Events Manager.
Choose Window > History,
and then choose a history
state from the History
palette.
Channels
element or collection.
Scripting basics
9
element or

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs2

Table of Contents