Adobe 27510753 Scripting Guide - Page 29
The InDesign document object model, Looking at the InDesign object model
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 29 highlights
Adobe InDesign CS2 Scripting Guide Getting Started with InDesign Scripting 21 The InDesign document object model This section provides a rough outline of some of the key object types and hierarchy within InDesign: l Application: Preferences (of various sorts) l Application: Defaults (Colors, ParagraphStyles, and so on--application default objects apply all new documents) l 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 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 commands. 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.