Adobe photoshop cs 2.0 Betriebsanweisung

Seite von 91
Photoshop CS2
Adobe Photoshop CS2  Scripting Guide
 Scripting Photoshop CS2     60
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 
DocumentInfo 
object. The following examples 
demonstrate how to use the 
DocumentInfo 
object to set the copyrighted status and owner URL of a 
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 
Class 
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 
DocumentInfo
 object. 
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