Adobe 27510753 - InDesign CS2 - PC Manual page 4

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

ii
Contents
3
4
Control structures ....................................................................................................... 15
Conditional statements ........................................................................................................15
Loops ...........
Subroutines and handlers ........................................................................................ 17
Measurements and positioning ............................................................................. 19
Coordinates ...............................................................................................................................19
Measurement units ................................................................................................................20
The InDesign document object model ............................................................... 21
Looking at the InDesign object model ...........................................................................21
Your first InDesign script ........................................................................................... 22
Dialog box overview .............................................................................................................29
Adding the user interface ........................................................................................ 30
Creating a more complex user interface ........................................................................33
Handling errors ............................................................................................................ 39
Using palettes to manage scripts ..........................................................................40
Using the Scripts palette ......................................................................................................40
Using the Script Label palette ............................................................................................41
Testing and troubleshooting ................................................................................... 42
AppleScript debugging ........................................................................................................42
VBScript debugging ..............................................................................................................42
JavaScript debugging ...........................................................................................................42
The ExtendScript Toolkit ...........................................................................................44
Configuring the Toolkit window .......................................................................................44
Selecting a debugging target ...........................................................................................45
Selecting scripts .....................................................................................................................46
Tracking data ............................................................................................................................47
The JavaScript console ........................................................................................................48
The call stack ...........................................................................................................................48
The Script Editor ......................................................................................................................49
Debugging in the Toolkit .....................................................................................................50
Profiling ......
Dollar ($) Object .......................................................................................................... 55
Dollar ($) object properties .................................................................................................55
Dollar ($) object functions ...................................................................................................56
ExtendScript Reflection Interface .......................................................................... 58
Reflection Object ...................................................................................................................58
ReflectionInfo Object ...........................................................................................................59
Localizing ExtendScript Strings ..............................................................................60
Variable values in localized strings ..................................................................................61
Enabling automatic localization .......................................................................................61
Locale names ...........................................................................................................................62
Testing localization ................................................................................................................62
Global localize function .......................................................................................................63
Adobe InDesign CS2 Scripting Guide
16
54

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents