Adobe InDesign CS2 Scripting Guide
Contents
1
Introduction ................................................................. 1
2
What is in this book ...................................................................................................... 1
Running JavaScript files ......................................................................................................... 3
What is scripting? ...................................................................................................................... 5
Why use scripting? ................................................................................................................... 6
What about macros? ................................................................................................................ 6
Commenting the script .......................................................................................................... 7
Objects and classes ...................................................................................................... 8
Object references ..................................................................................................................... 8
Values and variables ..................................................................................................... 9
Variable names ........................................................................................................................ 11
Array variables .........................................................................................................................12
Operators ....................................................................................................................... 14
Methods ......................................................................................................................... 14
Contents
i
2
2
2
8
9
10