Adobe 23101335 Scripting Guide - Page 3

Table of contents

Page 3 highlights

Table of contents Chapter 1 Introduction 5 1.1 About this manual 5 1.2 What is scripting 6 1.3 Why use scripting 6 1.4 What about actions 6 1.5 System requirements 6 1.6 JavaScript 7 1.7 Choosing a scripting language 7 1.8 Legacy COM scripting 8 Chapter 2 Scripting basics 9 2.1 Documents as objects 9 2.2 Object model concepts 9 2.3 Documenting scripts 11 2.4 Values 12 2.5 Variables 14 2.6 Operators 16 2.7 Commands and methods 17 2.8 Handlers, subroutines and functions 20 2.9 The Scripts menu 21 2.10 Testing and troubleshooting 23 Chapter 3 Scripting Photoshop 33 3.1 Photoshop scripting guidelines 33 3.2 Viewing Photoshop objects, commands and methods 34 3.3 Your first Photoshop script 36 3.4 Object references 42 3.5 Working with units 44 3.6 Executing JavaScripts from AS or VB 48 3.7 The Application object 50 Photoshop 7.0 Scripting Guide iii

  • 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
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91

Photoshop 7.0 Scripting Guide
iii
Table of contents
Chapter 1
Introduction
.........................
5
1.1
About this manual
.......................................
5
1.2
What is scripting?
.......................................
6
1.3
Why use scripting?
.......................................
6
1.4
What about actions?
......................................
6
1.5
System requirements
.....................................
6
1.6
JavaScript
...........................................
7
1.7
Choosing a scripting language
.................................
7
1.8
Legacy COM scripting
.....................................
8
Chapter 2
Scripting basics
.......................
9
2.1
Documents as objects
.....................................
9
2.2
Object model concepts
.....................................
9
2.3
Documenting scripts
.....................................
11
2.4
Values
............................................
12
2.5
Variables
...........................................
14
2.6
Operators
..........................................
16
2.7
Commands and methods
..................................
17
2.8
Handlers, subroutines and functions
.............................
20
2.9
The Scripts menu
......................................
21
2.10
Testing and troubleshooting
.................................
23
Chapter 3
Scripting Photoshop
....................
33
3.1
Photoshop scripting guidelines
................................
33
3.2
Viewing Photoshop objects, commands and methods
....................
34
3.3
Your first Photoshop script
..................................
36
3.4
Object references
......................................
42
3.5
Working with units
......................................
44
3.6
Executing JavaScripts from AS or VB
............................
48
3.7
The Application object
....................................
50