Adobe photoshop cs 2.0 User Guide

Page of 91
     1
1
Introduction
About this manual
This manual provides an introduction to scripting Adobe
®
 Photoshop CS2
®
 on Mac OS
®
 and Windows
®
Chapter one covers the basic conventions used in this manual and provides an overview of requirements 
for scripting Photoshop CS2. 
Chapter two covers the Photoshop CS2 object model as well as generic scripting terminology, concepts 
and techniques. Code examples are provided in three languages:
AppleScript
VBScript
JavaScript
Note:
Separate reference manuals are available for each of these languages and accompany this Scripting 
Guide. The reference manuals are located on the installation CD.
Chapter three covers Photoshop CS2-specific objects and components and describes advanced 
techniques for scripting the Photoshop CS2 application. 
Note:
Please review the README file shipped with Photoshop CS2 for late-breaking news, sample scripts, 
and information about outstanding issues. 
Conventions in this guide
Code and specific language samples appear in monospaced courier font:
app.documents.add
Several conventions are used when referring to AppleScript, VBScript and JavaScript. Please note the 
following shortcut notations:
AS stands for AppleScript
VBS stands for VBScript
JS stands for JavaScript
The term “commands” will be used to refer both to commands in AppleScript and methods in VBScript and 
JavaScript.
When referring to specific properties and commands, this manual follows the AppleScript naming 
convention for that property and the VBScript and JavaScript names appear in parenthesis. For example:
“The display dialogs (DisplayDialogs/displayDialogs) property is part of the Application 
object.” 
In this case, display dialogs refers to the AppleScript property, DisplayDialogs refers to the 
VBScript property and displayDialogs refers to the JavaScript property. 
For larger blocks of code, scripting examples are listed on separate lines.