The InDesign application.
application elements
| Name | Refer to By |
|---|---|
| auto correct tables | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| books | by numeric index, as a range of elements, before/after another element, satisfying a test |
| character styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| colors | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| dashed stroke styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| dialogs | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| display settings | by numeric index, as a range of elements, before/after another element, satisfying a test |
| document presets | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| documents | by numeric index, as a range of elements, before/after another element, satisfying a test |
| dotted stroke styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| flattener presets | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| fonts | by numeric index, as a range of elements, before/after another element, satisfying a test |
| gradients | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| inks | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| languages with vendors | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| layout windows | by numeric index, as a range of elements, before/after another element, satisfying a test |
| libraries | by numeric index, as a range of elements, before/after another element, satisfying a test |
| mixed ink groups | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| mixed inks | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| object styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| paragraph styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| p d f export presets | by numeric index, as a range of elements, before/after another element, satisfying a test |
| printer presets | by numeric index, as a range of elements, before/after another element, satisfying a test |
| story windows | by numeric index, as a range of elements, before/after another element, satisfying a test |
| striped stroke styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| stroke styles | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| swatches | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| tints | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| trap presets | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
| user dictionaries | by numeric index, as a range of elements, before/after another element, satisfying a test |
| windows | by numeric index, as a range of elements, before/after another element, satisfying a test |
| x m l export maps | by numeric index, as a range of elements, before/after another element, satisfying a test |
| x m l import maps | by numeric index, as a range of elements, before/after another element, satisfying a test |
| x m l tags | by numeric index, by name, as a range of elements, before/after another element, satisfying a test, by ID |
application properties
| Property | Type | Access | Description | ||
|---|---|---|---|---|---|
| active document | document | r/w | The active (front-most) document. | ||
| active script | alias or string | read | The file path to the script running from the Scripts palette. | ||
| active window | window, layout window, story window | r/w | The active (front-most) window. | ||
| anchored object defaults | anchored object default | read | Anchored object defaults. | ||
| anchored object settings | anchored object setting | read | Anchored object settings for the object. | ||
| auto correct preferences | auto correct preference | read | Auto correct preferences. | ||
| baseline frame grid options | baseline frame grid option | read | The baseline frame grid options. | ||
| button preferences | button preference | read | Button preferences. | ||
| change preferences | change preference, nothing enum enumeration | r/w | The current change settings for InDesign’s find/change feature. This object corresponds to options found in the Find/Change panel (including the options in the Change Format Settings section of that panel).
|
||
| class | integer | read | The class descriptor type. | ||
| clipboard preferences | clipboard preference | read | Clipboard preferences. | ||
| color settings | color setting | read | Color management settings. | ||
| data merge options | data merge option | read | Data merge options. | ||
| diagnostics | diagnostics object | read | The Diagnostics object. | ||
| dictionary preferences | dictionary preference | read | User dictionary preferences. This object corresponds to the Dictionary panel of the Preferences dialog box. |
||
| display performance preferences | display performance preference | read | Display performance preferences. This object corresponds to the Display Performance panel of the Preferences dialog box. |
||
| document preferences | document preference | read | Document preferences. This object corresponds to the document panel of the Preferences dialog box. |
||
| EPS export preferences | EPS export preference | read | EPS export preferences. | ||
| EPS import preferences | EPS import preference | read | EPS import preferences. | ||
| excel import preferences | excel import preference | read | The application’s default Excel Import preferences. This object corresponds to the Excel Import dialog box (which appears when a user imports an Excel document and has turned on the Show Options option in the Place dialog box). |
||
| feature set | feature set options enumeration | read | Feature set of the application (Roman or Japanese).
|
||
| file path | alias or string | read | The complete path to the folder that contains the application. | ||
| find preferences | find preference, nothing enum enumeration | r/w | The current find settings for InDesign’s find/change feature. This object corresponds to options found in the Find/Change panel (including the options in the Find Format Settings section of that panel).
|
||
| footnote options | footnote option | read | Footnote options. | ||
| full name | alias or string | read | The file path to the application, including the file name. | ||
| galley preferences | galley preference | read | Story Editor preferences. This object corresponds to the Story Editor Display panel of the Preferences dialog box. |
||
| general preferences | general preference | read | General preferences. This object corresponds to the General panel of the Preferences dialog box. |
||
| grabber preferences | grabber preference | read | Hand tool scrolling preferences. This object corresponds to the settings in the Scrolling section of the Display Performance panel of the Preferences dialog box. |
||
| grid preferences | grid preference | read | Grid preferences. This object corresponds to the Grids panel of the Preferences dialog box. |
||
| guide preferences | guide preference | read | Guide preferences. This object corresponds to the Guides and Pasteboard panel of the Preferences dialog box. |
||
| image IO preferences | image IO preference | read | Image IO preferences. | ||
| IME preferences | IME preference | read | Input Method Editor (IME) preferences. | ||
| index generation options | index options | read | The options controlling index generation. This object corresponds to the Generate index dialog box. (To display this dialog box, choose Generate index from the index palette menu). |
||
| JPEG export preferences | JPEG export preference | read | JPEG export preferences. | ||
| layout adjustment preferences | layout adjustment preference | read | The application’s default layout adjustment preferences. The properties in this object correspond to the options shown in the Layout Adjustment dialog box. (Choose Layout Adjustment from the Layout menu to display this dialog box). |
||
| locale | locale enumeration | read | The locale of the application.
|
||
| margin preferences | margin preference | read | Margin preferences. These settings affect all new documents that you create, but have no effect on the margin preferences of existing documents. This object corresponds to the options found in the Margins and columns dialog box. |
||
| modal state | boolean | read | If true, a modal dialog (or alert) is active. | ||
| name | string | read | The name of the object. | ||
| object reference | object | read | An object reference for this object. | ||
| palettes visible | boolean | r/w | If true, the palettes are displayed. | ||
| parent | object | read | The parent of the object. | ||
| pasteboard preferences | pasteboard preference | read | Pasteboard preferences. The properties of this object correspond to the pasteboard-related options in the Guides and Pasteboard panel of the Preferences dialog box. |
||
| PDF export preferences | PDF export preference | read | PDF export preferences. | ||
| PDF place preferences | PDF place preference | read | PDF place preferences. | ||
| placeable file extensions | list of strings | read | A list of file types (extensions) that can be placed. | ||
| placeable file types | list of strings | read | A list of file types that can be placed. | ||
| polygon preferences | polygon preference | read | Polygon preferences. This object corresponds to the Polygon Settings dialog box. (To display this dialog box, double-click the Polygon tool in the Tools palette.). |
||
| properties | record | r/w | Property that allows setting of several properties at the same time. | ||
| QA scripting object | QAScript | read | QA scripting object. | ||
| redo history | list of strings | read | A list of events in the redo queue. | ||
| redo name | string | read | The name of the event at the top of the redo queue. | ||
| script args | script arg | read | Script arguments. | ||
| script preferences | script preference | read | Scripting environment preferences. | ||
| selection | object, list of objects, nothing enum enumeration | r/w | The current selection.
|
||
| spell preferences | spell preference | read | Spelling preferences. This object corresponds to the Spelling panel of the Preferences dialog box. |
||
| story preferences | story preference | read | Story preferences. This object corresponds to the Story palette. These settings affect all new documents, but have no effect on the story preferences in existing documents. |
||
| SVG export preferences | SVG export preference | read | SVG export preferences. | ||
| tagged text export preferences | tagged text export preference | read | Tagged text export preferences. This object corresponds to the Tagged Text Export dialog box, which appears when you export tagged text. |
||
| tagged text import preferences | tagged text import preference | read | Tagged text import preferences. This object corresponds to the Tagged Text Import dialog box (which appears when you import a tagged text file and have turned on the Show Options option in the Place dialog box). |
||
| test is running | boolean | read | Whether a test is currently running. | ||
| test time accumulator | fixed | r/w | QA test time accumulator property. | ||
| text defaults | text default | read | The default text formatting for the application. This affects all new documents, and has no effect on existing documents. |
||
| text editing preferences | text editing preference | read | Text editing preferences. | ||
| text export preferences | text export preference | read | The text export preferences. | ||
| text frame preferences | text frame preference | read | Text frame preferences. | ||
| text import preferences | text import preference | read | The text import preferences. | ||
| text preferences | text preference | read | Text preferences. | ||
| transform preferences | transform preference | read | Transform preferences. | ||
| transparency preferences | transparency preference | read | Transparency preferences. | ||
| undo history | list of strings | read | The names of the events in the undo queue. | ||
| undo name | string | read | The name of the most recent event in the undo queue. | ||
| unused swatches | list of swatches | read | A list of unused swatches. | ||
| user color | list of 3 fixed (0 – 255), InCopy UI colors enumeration | r/w | The user color for tracked changes and notes.
|
||
| user name | string | r/w | The user name for tracked changes and notes. | ||
| version | string | read | Version of the application. | ||
| view preferences | view preference | read | View preferences. | ||
| visible | boolean | read | If true, the application is visible. | ||
| word RTF import preferences | word RTF import preference | read | Word and RTF import preferences. | ||
| XML export preferences | XML export preference | read | XML export preferences. | ||
| XML import preferences | XML import preference | read | XML import preferences. | ||
| XML preferences | XML preference | read | XML preferences. | ||
| XML view preferences | XML view preference | read | XML view preferences. |
application methods
| Method | Returns | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| activate | Nothing | Brings the application to the front. | |||||||||||||||||||||
| cascade windows | Nothing | Arranges the open windows in a “cascade” (i.e., overlapping windows). | |||||||||||||||||||||
| copy | Nothing | Copies the selection. | |||||||||||||||||||||
| cut | Nothing | Cuts the selection. | |||||||||||||||||||||
| delete unused tags | Nothing | Deletes all unused XML markup tags. | |||||||||||||||||||||
| do script | anything | Runs a script. The script can be either a file or a string.
|
|||||||||||||||||||||
| export presets | Nothing | Export the presets to a file.
|
|||||||||||||||||||||
| import | Nothing | Import a presets file into InDesign.
|
|||||||||||||||||||||
| import Adobe swatchbook process color | color | Import a process color from a preloaded Adobe color book.
|
|||||||||||||||||||||
| import Adobe swatchbook spot color | color | Import a spot color from a preloaded Adobe color book.
|
|||||||||||||||||||||
| import styles | Nothing | Import styles from a file.
|
|||||||||||||||||||||
| load swatches | Nothing | Load swatches from a file.
|
|||||||||||||||||||||
| load XML tags | Nothing | Load a set of XML tags from a file.
|
|||||||||||||||||||||
| open | document, book, library or list of documents, books or libraries | Opens a document, book, or library.
|
|||||||||||||||||||||
| paste | Nothing | Pastes data from the clipboard. | |||||||||||||||||||||
| paste in place | Nothing | Paste data from the clipboard into front document window at the same position as the original. |
|||||||||||||||||||||
| paste into | Nothing | Pastes data from the clipboard into the selected object. | |||||||||||||||||||||
| paste without formatting | Nothing | Paste data without formatting from the clipboard into front document window. | |||||||||||||||||||||
| place | Nothing | Places a file.
|
|||||||||||||||||||||
| Nothing | Print one or more documents.
|
||||||||||||||||||||||
| publish terminology | Nothing | Generate an AppleScript dictionary.
|
|||||||||||||||||||||
| QATest | string | QA test event.
|
|||||||||||||||||||||
| quit | Nothing | Quits the application.
|
|||||||||||||||||||||
| redo | Nothing | Redo the last action. | |||||||||||||||||||||
| save swatches | Nothing | Saves the specified swatches to a swatchbook file.
|
|||||||||||||||||||||
| save XML tags | Nothing | Saves XML tags to a file.
|
|||||||||||||||||||||
| search | list of texts | Searches for text and returns a list of text objects matching the search string and/or formatting specified by the find preferences. Search can also replace the text and/or formatting. This command corresponds to InDesign’s Find/Change feature.
|
|||||||||||||||||||||
| select | Nothing | Selects the object.
|
|||||||||||||||||||||
| tile windows | Nothing | Arranges the open windows in a “tiled” layout (i.e., non-overlapping windows). | |||||||||||||||||||||
| undo | Nothing | Undo the last action. | |||||||||||||||||||||
| update fonts | Nothing | Forces a check for new fonts in the various Fonts folders. |