The Indesign Document Object Model; Looking At The Indesign Object Model - Adobe 27510753 - InDesign CS2 - PC Manual

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

Advertisement

Adobe InDesign CS2 Scripting Guide

The InDesign document object model

This section provides a rough outline of some of the key object types and hierarchy within InDesign:
Application: Preferences (of various sorts)
l
Application: Defaults (Colors, ParagraphStyles, and so on--application default objects apply all new
l
documents)
Application: Documents (collection of open documents)
l
Document: Preferences (of various sorts)
l
Document: Defaults (Colors, ParagraphStyles, and so on--document default objects)
l
Document: Spreads/Pages
l
Spread/Page: PageItems (Rectangles, Ovals, Polygons, GraphicLines, TextFrames, etc.)
l
Document: Stories (The text in the document)
l
Story: Text objects (Paragraphs, Words, Characters, Lines, and so on--the text in the story)
l
A button is a page item (it's a way to add an interactive button to an exported PDF).
l
Application: Dialogs (script dialog boxes) (includes most of the other user interface gadgets (radio button
l
controls, dropdowns, checkbox controls, and so on) for building modal dialog boxes)

Looking at the InDesign object model

Although the objects and commands available in InDesign are all documented in the InDesign CS2 Scripting
Reference, you can also view them from inside your scripting system if you are using AppleScript or VBScript.
JavaScript does not provide a way to view the InDesign object model.
AppleScript
To view the InDesign AppleScript dictionary:
1. Start InDesign and the Apple Script Editor. If you can't find the Script Editor, see "System Requirements" in
the Introduction.
2. In the Script Editor, choose File > Open Dictionary. The Script Editor displays a standard Open File dialog
box.
3. Select the InDesign application and click OK. The Script Editor displays a list of InDesign's objects and com-
mands. You also can see the properties associated with each object.
JavaScript and VBScript
If you're using JavaScript or VBScript to write your InDesign scripts, you can't view the InDesign object model
as you can in AppleScript or VBScript. Instead, refer to the corresponding chapter of the Adobe InDesign
Scripting Reference.
Getting Started with InDesign Scripting
21

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents