Adobe 65009333 Scripting Guide - Page 15

Looking at the InCopy object model

Page 15 highlights

Getting Started Scripting terminology and the InCopy object model 15 Term Document defaults Document elements Document events Document methods Document preferences Document properties Documents Libraries Page Page item Pages or spreads Stories Text objects What it represents: Document default settings, such as colors, paragraph styles, and text formatting defaults. For example, the stories, imported graphics, and pages of a document. The figure above shows pages and stories, because those objects are extremely important containers for other objects; however, document elements also include rectangles, ovals, groups, XML elements, and any other type of object you can import or create. Events that occur at the document level, such as importing text. See application events in this table. The actions the document can take; for example, closing a document, printing a document, and exporting a document. The preferences of a document, such as guide preferences, view preferences, or document preferences. For example, the document filename, number of pages, and zero-point location. A collection of open documents. A collection of open libraries. One page in an InCopy document. Any object you can create or place on a page. There are many types of page items, such as text frames, rectangles, graphic lines, and groups. The pages or spreads in an InCopy document. The text in an InCopy document. Characters, words, lines, paragraphs, and text columns are examples of text objects in an InCopy story. Looking at the InCopy object model You can view the InCopy object model from inside your script-editing application. All reference information on objects and their properties and methods is stored in the model and can be viewed, To view the InCopy object model in the ExtendScript Toolkit, follow these steps: 1. Start the ExtendScript Toolkit. 2. Choose Help > InCopy CS4 Main Dictionary. The ExtendScript Toolkit loads the InCopy dictionary and displays it in a separate window.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

Getting Started
Scripting terminology and the InCopy object model
15
Looking at the InCopy object model
You can view the InCopy object model from inside your script-editing application. All reference
information on objects and their properties and methods is stored in the model and can be viewed,
To view the InCopy object model in the ExtendScript Toolkit, follow these steps:
1.
Start the ExtendScript Toolkit.
2.
Choose Help > InCopy CS4 Main Dictionary. The ExtendScript Toolkit loads the InCopy dictionary and
displays it in a separate window.
Document
defaults
Document default settings, such as colors, paragraph styles, and text formatting
defaults.
Document
elements
For example, the stories, imported graphics, and pages of a document. The figure above
shows pages and stories, because those objects are extremely important containers for
other objects; however, document elements also include rectangles, ovals, groups, XML
elements, and any other type of object you can import or create.
Document
events
Events that occur at the document level, such as importing text. See
application events
in
this table.
Document
methods
The actions the document can take; for example, closing a document, printing a
document, and exporting a document.
Document
preferences
The preferences of a document, such as guide preferences, view preferences, or
document preferences.
Document
properties
For example, the document filename, number of pages, and zero-point location.
Documents
A collection of open documents.
Libraries
A collection of open libraries.
Page
One page in an InCopy document.
Page item
Any object you can create or place on a page. There are many types of page items, such
as text frames, rectangles, graphic lines, and groups.
Pages or
spreads
The pages or spreads in an InCopy document.
Stories
The text in an InCopy document.
Text objects
Characters, words, lines, paragraphs, and text columns are examples of text objects in an
InCopy story.
Term
What it represents: