Adobe PHOTOSHOP CS 2.0 - SCRIPTING GUIDE Manual page 64

Table of Contents

Advertisement

Adobe Photoshop CS2 Scripting Guide
Note:
Component channels are related to the document mode. Refer to Photoshop CS2 Help for
information on channels, channel types, and document modes.
AS
set kind of myChannel to selected area channel
VBS
channelRef.kind = 3 'for psSelectedAreaAlphaChannel
'from the constant value psChannelType
JS
channelRef.kind = ChannelType.SELECTEDAREA
Using the Document Info Object
In Photoshop CS2, you can associate information with a document by choosing File > File Info.
To accomplish this task in a script, you use the
demonstrate how to use the
document.
AS
set docInfoRef to info of current document
set copyrighted of docInfoRef to copyrighted work
set owner url of docInfoRef to "http://www.adobe.com"
VBS
Set docInfoRef = docRef.Info
docInfoRef.Copyrighted = 1 'for psCopyrightedWork
docInfoRef.OwnerUrl = "http://www.adobe.com"
JS
docInfoRef = docRef.info
docInfoRef.copyrighted = CopyrightedType.COPYRIGHTEDWORK
docInfoRef.ownerUrl = "http://www.adobe.com"
For information about other types of information (properties) you can associate with a document, look up
the following:
In the Adobe Photoshop CS2 AppleScript Scripting Reference, look up the properties for the
info-object
In the Adobe Photoshop CS2 Visual Basic Scripting Reference and the Adobe Photoshop CS2 JavaScript
Scripting Reference, look up the Properties table for the
Using History State Objects
Photoshop CS2 keeps a history of the actions that affect documents. Each time you save a document in the
Photoshop CS2 application, you create a history state; you can access a document's history states from the
History palette by selecting Window > History.
Photoshop CS2
DocumentInfo
.
object. The following examples
DocumentInfo
object to set the copyrighted status and owner URL of a
DocumentInfo
Scripting Photoshop CS2
Class
object.
60

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PHOTOSHOP CS 2.0 - SCRIPTING GUIDE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Photoshop cs2

Table of Contents