Adobe 65024872 - InDesign CS4 - Mac Manual page 20

Scripting guide
Hide thumbs Also See for 65024872 - InDesign CS4 - Mac:
Table of Contents

Advertisement

Adobe InDesign CS4 Scripting Tutorial
JavaScript
To view the InDesign object model in the ExtendScript Toolkit, follow these steps:
1. Start the ExtendScript Toolkit.
2. Choose Help > Object Model Viewer.
3. Select Adobe InDesign CS4 Object Model in the Browser pane. The ExtendScript Toolkit loads
object model help file and displays a list of InDesign scripting objects in the Classes pane.
4. From the list of objects in the Classes pane, select the object you want to view, then click the property
or method you want to view in more detail in the Properties and Methods list. The ExtendScript toolkit
displays more information on the property or method you selected:
For more information on using the ExtendScript Toolkit Object Model Viewer, see the Creative Suite 4
JavaScript Tools Guide.
N
: The class (object) name shown in the Object Model Viewer uses a different capitalization from the
OTE
way an instance of the same object in a script. Because JavaScript is case-sensitive, you need to use the
proper capitalization when you enter the term in a script. For example, the term "Documents" appears in
the list of classes, but you would use "app.documents" to refer to that class in a script. The correct
capitalization will always be shown in the Properties and Methods pane in the Object Model Viewer when
the parent of the object is selected in the Class pane.
Scripting and the InDesign object model 20

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs4

Table of Contents