Adobe InDesign CS4 Scripting Tutorial
The objects in the diagram are explained in the following table:
Term
Application
Application
defaults
Application
events
Application
menus
Application
methods
Application
preferences
Application
properties
Books
Document
application
documents
libraries
books
application preferences
application defaults
application events
application menus
application properties
application methods
What it represents
InDesign.
Application default settings, such as colors, paragraph styles, and object styles.
Application defaults affect all new documents.
The things that happen as a user or script works with the application. Events are
generated by opening, closing, or saving a document or choosing a menu item.
Scripts can be triggered by events.
The menus, submenus, and context menus displayed in the InDesign user interface.
Scripts can be attached to menu choices and can execute menu actions.
The actions the application can take; for example, finding and changing text,
copying the selection, creating new documents, and opening libraries.
For example, text preferences, PDF export preferences, and document preferences.
Many of the preferences objects also exist at the document level. Just as in the user
interface, application preferences are applied to new documents. Document
preferences change the settings of a specific document.
The properties of the application; for example, the full path to the application, the
locale of the application, and the user name.
A collection of open books.
An InDesign document.
a document
document preferences
document defaults
document events
document properties
document methods
document elements
pages or spreads
stories
Scripting and the InDesign object model 17
page
page items
text objects