Supported Suites

With all of the objects and events listed in this section, users can create, format, change, and print Word documents from AppleScript.

Word recognizes the following standard objects, as defined by the Apple Event Registry.

Suite

Objects

Core

Application, Character, Document, File, Selection-Object, Text, Text Style Info, Window, Insertion Point

Text

Line, Paragraph, Text, Text Flow, Word

Table

Cell, Column, Row, Table


Word responds to the following standard events, as described in the Apple Event Registry.

Suite

Events

Required

Open, Print, Quit, Run

Core

Close, Count, Data Size, Delete, Duplicate, Exists, Get, Make, Move, Open, Print, Quit, Save, Set

Miscellaneous

Activate, Begin Transaction, Copy, Cut, Do Script, End Transaction, Paste, Redo, Revert, Undo


To determine the properties that Word supports for these standard objects, or to determine the arguments required by these supported events, refer to the AppleScript dictionary for Microsoft Word, accessible through the Open Dictionary command (File menu) in the Script Editor (or a comparable feature of your scripting application). For detailed information about supported objects and their properties, as well as supported events, see your scripting documentation.

In addition to the standard events and objects described above, Word defines four new objects and one new event.

Word Objects

Paragraph Style, Range, Section, Sentence

Word Event

Select

For detailed information about these objects and events, see "Extensions to Supported Suites" later in this appendix.