12.01.2013 Views

Adobe InDesign CS5 Scripting Tutorial

Adobe InDesign CS5 Scripting Tutorial

Adobe InDesign CS5 Scripting Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Adobe</strong> <strong>InDesign</strong> <strong>CS5</strong> <strong>Scripting</strong> <strong>Tutorial</strong> <strong>Scripting</strong> and the <strong>InDesign</strong> object model 20<br />

JavaScript<br />

To view the <strong>InDesign</strong> object model in the ExtendScript Toolkit:<br />

1. Start the ExtendScript Toolkit.<br />

2. Choose Help > Object Model Viewer.<br />

3. Select <strong>Adobe</strong> <strong>InDesign</strong> <strong>CS5</strong> Object Model in the Browser pane. The ExtendScript Toolkit loads<br />

object model help file and displays a list of <strong>InDesign</strong> scripting objects in the Classes pane.<br />

4. From the list of objects in the Classes pane, select the object you want to view, then click the property<br />

or method you want to view in more detail in the Properties and Methods list. The ExtendScript toolkit<br />

displays more information on the property or method you selected:<br />

For more information on using the ExtendScript Toolkit Object Model Viewer, see the <strong>CS5</strong> JavaScript Tools<br />

Guide.<br />

NOTE: The class (object) name shown in the Object Model Viewer uses a different capitalization from the<br />

way an instance of the same object appears in a script. Because JavaScript is case-sensitive, you need to<br />

use the proper capitalization when you enter the term in a script. For example, the term “Documents”<br />

appears in the list of classes, but you would use “app.documents” to refer to that class in a script. The<br />

correct capitalization will always be shown in the Properties and Methods pane in the Object Model<br />

Viewer when the parent of the object is selected in the Class pane.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!