Adobe 23102480 Scripting Guide - Page 5

Introduction, About this manual, Conventions in this guide - cs3

Page 5 highlights

1 Introduction About this manual This manual provides an introduction to scripting Adobe® Photoshop® CS3 on Mac OS® and Windows®. Chapter one covers the basic conventions used in this manual. Chapter two covers a brief overview of scripting, how to execute scripts, and the Photoshop CS3 object model. Chapter three covers Photoshop CS3-specific objects and components and describes advanced techniques for scripting the Photoshop CS3 application. Code examples are provided in three languages: ● AppleScript ● VBScript ● JavaScriptTM Note: Separate Photoshop CS3 Scripting reference information is provided for each of these languages through the Scripting Reference Manuals provided with this installation, or through the object browsers available for each language. See 'Viewing Photoshop CS3's AppleScript Dictionary' on page 19 and 'Viewing Photoshop CS3's Type Library (VBS)' on page 20. For information about using the Extend Script Object Model Viewer, see the JavaScript Tools Guide. Chapter four covers the Action Manager, which allows you to write scripts that target Photoshop CS3 functionality that is not otherwise accessible in the scripting interface. Note: Please review the README file shipped with Photoshop CS3 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." 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85

5
1
Introduction
About this manual
This manual provides an introduction to scripting Adobe
®
Photoshop
®
CS3 on Mac OS
®
and Windows
®
.
Chapter one covers the basic conventions used in this manual.
Chapter two covers a brief overview of scripting, how to execute scripts, and the Photoshop CS3 object
model.
Chapter three covers Photoshop CS3-specific objects and components and describes advanced
techniques for scripting the Photoshop CS3 application. Code examples are provided in three languages:
AppleScript
VBScript
JavaScript
TM
Note:
Separate Photoshop CS3 Scripting reference information is provided for each of these languages
through the Scripting Reference Manuals provided with this installation, or through the object
browsers available for each language. See
‘Viewing Photoshop CS3’s AppleScript Dictionary’ on
page 19
and
‘Viewing Photoshop CS3’s Type Library (VBS)’ on page 20
. For information about using
the Extend Script Object Model Viewer, see the
JavaScript Tools Guide
.
Chapter four covers the Action Manager, which allows you to write scripts that target Photoshop CS3
functionality that is not otherwise accessible in the scripting interface.
Note:
Please review the
README
file shipped with Photoshop CS3 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.”