Adds an event listener.
Application
The application.
Application
61 objects
AutoCorrectTable | Book | CellStyle | CellStyleGroup | CellStyleMapping | CharStyleMapping | CharacterStyle | CharacterStyleGroup | Color | ColorGroup | CompositeFont | Condition | ConditionSet | DashedStrokeStyle | Document | DocumentEvent | DocumentPreset | DottedStrokeStyle | ErrorListError | FlattenerPreset | Font | Gradient | HttpLinkConnectionManagerObject | IdleTask | ImportExportEvent | IndexingSortOption | Ink | KinsokuTable | LanguageWithVendors | Library | MixedInk | MixedInkGroup | MojikumiTable | MotionPreset | NamedGrid | NumberingList | ObjectStyle | ObjectStyleGroup | PDFExportPreset | ParaStyleMapping | ParagraphStyle | ParagraphStyleGroup | PreflightProcess | PreflightProfile | PreflightRule | PrinterPreset | StripedStrokeStyle | StrokeStyle | Swatch | TableStyle | TableStyleGroup | TableStyleMapping | TextVariable | Tint | TransformationMatrix | TrapPreset | UserDictionary | XMLExportMap | XMLImportMap | XMLRuleProcessor | XMLTag
92 preference objects
AlignDistributePreference | AnchoredObjectDefault | AnchoredObjectSetting | AutoCorrectPreference | BaselineFrameGridOption | ButtonPreference | ChangeColorPreference | ChangeGlyphPreference | ChangeGrepPreference | ChangeObjectPreference | ChangeTextPreference | ChangeTransliteratePreference | CjkGridPreference | ClipboardPreference | ColorSetting | ConditionalTextPreference | ContentPlacerObject | DataMergeOption | DictionaryPreference | DocumentPreference | EPSExportPreference | EPSImportPreference | EPubExportPreviewAppPreference | EndnoteOption | ExcelImportPreference | ExportForWebPreference | FindChangeColorOption | FindChangeGlyphOption | FindChangeGrepOption | FindChangeObjectOption | FindChangeTextOption | FindChangeTransliterateOption | FindColorPreference | FindGlyphPreference | FindGrepPreference | FindObjectPreference | FindTextPreference | FindTransliteratePreference | FontLockingPreference | FontSyncPreference | FootnoteOption | FrameFittingOption | GeneralPreference | GridPreference | GridPrintingPreference | GuidePreference | ImageIOPreference | ImagePreference | ImportedPageAttribute | InCopyExportOption | IndexOptions | InteractivePDFExportPreference | JPEGExportPreference | LayoutGridDataInformation | LinkedPageItemOption | LinkedStoryOption | LinkingPreference | MarginPreference | MojikumiUiPreference | PDFExportPreference | PDFPlacePreference | PNGExportPreference | PageItemDefault | PasteboardPreference | PolygonPreference | Preference | PreflightBookOption | PreflightOption | ScriptArg | ScriptPreference | ServerSetting | SpellPreference | StoryGridDataInformation | StoryPreference | TaggedPDFPreference | TaggedTextExportPreference | TaggedTextImportPreference | TextDefault | TextExportPreference | TextFramePreference | TextImportPreference | TextPreference | TextWrapPreference | TrackChangesPreference | TransformPreference | TransparencyPreference | ViewPreference | WatermarkPreference | WordRTFImportPreference | XMLExportPreference | XMLImportPreference | XMLPreference
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Book | read/write | The active book. | |
| File async | readonly | The current script running from the Scripts panel.In UXP this is only the path as a string — not a File object, and without its properties. | |
| UndoModes | readonly | The undo mode for the current script execution. | |
| AlignDistributePreference | readonly | Preferences for alignment and distribution. | |
| CellStyle[] | readonly | All Cell styles | |
| CharacterStyle[] | readonly | Lists all character styles (regardless of their group). | |
| ObjectStyle[] | readonly | All object styles contained by the Application. | |
| ParagraphStyle[] | readonly | Lists all paragraph styles (regardless of their group). | |
| String[] | readonly | The list of all object types (strings) a preflight rule can operate on. | |
| String[] | readonly | The list of all categories that have been declared by rules. | |
| String[] | readonly | The list of all known (declared) rule IDs. | |
| TableStyle[] | readonly | All Table styles | |
| AnchoredObjectDefault | readonly | Anchored object default settings. | |
| AnchoredObjectSetting | readonly | Anchored object settings. | |
| Boolean | read/write | auto convert to math after place | |
| AutoCorrectPreference | readonly | Auto-correct preferences. | |
| AutoCorrectTables |
readonly | A collection of auto-correct tables. | |
| BaselineFrameGridOption | readonly | Baseline frame grid option settings. | |
| Books |
readonly | A collection of books. | |
| ButtonPreference | readonly | Button preference settings. | |
| CellStyleGroups |
readonly | A collection of cell style groups. | |
| CellStyleMappings |
readonly | A collection of cell style mappings. | |
| CellStyles |
readonly | A collection of cell styles. | |
| ChangeColorPreference | NothingEnum | read/write | Change color preferences. Can also accept: NothingEnum enumerator. | |
| ChangeGlyphPreference | NothingEnum | read/write | Change glyph preferences. Can also accept: NothingEnum enumerator. | |
| ChangeGrepPreference | NothingEnum | read/write | Change grep preferences. Can also accept: NothingEnum enumerator. | |
| ChangeObjectPreference | NothingEnum | read/write | Change object preferences. Can also accept: NothingEnum enumerator. | |
| ChangeTextPreference | NothingEnum | read/write | Change text preferences. Can also accept: NothingEnum enumerator. | |
| ChangeTransliteratePreference | NothingEnum | read/write | Change transliterate preferences. Can also accept: NothingEnum enumerator. | |
| CharStyleMappings |
readonly | A collection of char style mappings. | |
| CharacterStyleGroups |
readonly | A collection of character style groups. | |
| CharacterStyles |
readonly | A collection of character styles. | |
| CjkGridPreference | readonly | CJK grid preference settings. | |
| Boolean | read/write | Clear overrides first before applying object style | |
| ClipboardPreference | readonly | Clipboard preference properties that define the way that the application interacts with the system clipboard. | |
| ColorGroups |
readonly | A collection of color groups. | |
| ColorSetting | readonly | Color setting properties that define color management defaults. | |
| Colors |
readonly | A collection of colors. | |
| CompositeFonts |
readonly | A collection of composite fonts. | |
| ConditionSets |
readonly | A collection of condition sets for conditional text. | |
| ConditionalTextPreference | readonly | Conditional text preferences. | |
| Conditions |
readonly | A collection of conditions for conditional text. | |
| ContentPlacerObject | readonly | The Content Placer. Used to get a reference to the content placer object. | |
| DashedStrokeStyles |
readonly | A collection of dashed stroke styles. | |
| DataMergeOption | readonly | The data merge option properties that define the data merge. | |
| DictionaryPreference | readonly | User dictionary preference settings. | |
| DocumentPreference | readonly | Document preference settings. | |
| DocumentPresets |
readonly | A collection of document presets. | |
| Documents |
readonly | A collection of documents. | |
| DottedStrokeStyles |
readonly | A collection of dotted stroke styles. | |
| EndnoteOption | readonly | Endnote option settings. | |
| EPSExportPreference | readonly | EPS export preferences. | |
| EPSImportPreference | readonly | EPS import preferences. | |
| EPubExportPreviewAppPreference | readonly | EPub export preview app preference settings. | |
| ErrorListErrors |
readonly | A collection of error list errors. | |
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| ExcelImportPreference | readonly | Excel import preferences. | |
| ExportForWebPreference | readonly | The default export for web preferences. | |
| FeatureSetOptions | readonly | The feature set. | |
| File async | readonly | The full path to the file. | |
| FindChangeColorOption | NothingEnum | read/write | Find/change color options. Can also accept: NothingEnum enumerator. | |
| FindChangeGlyphOption | NothingEnum | read/write | Find/change glyph options. Can also accept: NothingEnum enumerator. | |
| FindChangeGrepOption | NothingEnum | read/write | Find/change grep options. Can also accept: NothingEnum enumerator. | |
| FindChangeObjectOption | NothingEnum | read/write | Find/change object options. Can also accept: NothingEnum enumerator. | |
| FindChangeTextOption | NothingEnum | read/write | Find/change text options. Can also accept: NothingEnum enumerator. | |
| FindChangeTransliterateOption | NothingEnum | read/write | Find/change transliterate options. Can also accept: NothingEnum enumerator. | |
| FindColorPreference | NothingEnum | read/write | Find color preferences. Can also accept: NothingEnum enumerator. | |
| FindGlyphPreference | NothingEnum | read/write | Find glyph preferences. Can also accept: NothingEnum enumerator. | |
| FindGrepPreference | NothingEnum | read/write | Find grep preferences. Can also accept: NothingEnum enumerator. | |
| FindObjectPreference | NothingEnum | read/write | Find object preferences. Can also accept: NothingEnum enumerator. | |
| FindTextPreference | NothingEnum | read/write | Find text preferences. Can also accept: NothingEnum enumerator. | |
| FindTransliteratePreference | NothingEnum | read/write | Find transliterate preferences. Can also accept: NothingEnum enumerator. | |
| FlattenerPresets |
readonly | A collection of transparency flattener presets. | |
| FontLockingPreference | readonly | Font locking preference settings. | |
| FontSyncPreference | readonly | The font sync preference properties that define preferences for fonts. | |
| Fonts |
readonly | A collection of fonts. | |
| FootnoteOption | readonly | Footnote option settings. | |
| FrameFittingOption | readonly | The frame fitting option to apply to placed or pasted content. Can be applied to a frame, object style, or document or to the application. | |
| File async | readonly | The full path to the Application, including the name of the Application. | |
| GeneralPreference | readonly | General preference settings. | |
| Gradients |
readonly | A collection of gradients. | |
| GridPreference | readonly | Grid preference settings. | |
| GridPrintingPreference | readonly | Grid printing preference and export settings. | |
| GuidePreference | readonly | Guide preference settings. | |
| HttpLinkConnectionManagerObject | read/write | Experimental: Connection manager property | |
| IdleTasks |
readonly | All attachable idle tasks. | |
| ImageIOPreference | readonly | The image I/O preference properties that define preferences for importing images. | |
| ImagePreference | readonly | Image preferences. | |
| ImportedPageAttribute | readonly | Placed InDesign page attributes. | |
| InCopyExportOption | readonly | Export options for InCopy INCX document format. | |
| IndexOptions | readonly | The index options properties that define how an index is formatted. | |
| IndexingSortOptions |
readonly | A collection of indexing sort options. | |
| Inks |
readonly | A collection of inks. | |
| InteractivePDFExportPreference | readonly | Interactive PDF export preferences. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| JPEGExportPreference | readonly | JPEG export preferences. | |
| KinsokuTables |
readonly | A collection of kinsoku tables. | |
| String | read/write | A property that can be set to any string. | |
| LanguagesWithVendors |
readonly | A collection of languages with vendors. | |
| LayoutGridDataInformation | readonly | Default properties specific to layout grids. | |
| Libraries |
readonly | A collection of object libraries. | |
| LinkedPageItemOption | readonly | Linked Page Item options | |
| LinkedStoryOption | readonly | Linked story options | |
| LinkingPreference | readonly | The links preference properties that define preferences for links. | |
| Locale | readonly | The locale of the application. | |
| MarginPreference | readonly | Margin preference settings. | |
| MixedInkGroups |
readonly | A collection of mixed ink groups. | |
| MixedInks |
readonly | A collection of mixed inks. | |
| MojikumiTables |
readonly | A collection of mojikumi tables. | |
| MojikumiUiPreference | readonly | Mojikumi user interface preference settings. | |
| MotionPresets |
readonly | A collection of Motion presets. | |
| String | readonly | MathTools CFG folder path | |
| String | readonly | MathTools installation folder path | |
| String | readonly | MathTools licensing information | |
| String | readonly | MathTools LOG folder path | |
| String | read/write | mt project folder | |
| String | readonly | Version of MathTools | |
| String | readonly | The name of the Application. | |
| NamedGrids |
readonly | A collection of named grids. | |
| NumberingLists |
readonly | A collection of numbered lists. | |
| ObjectStyleGroups |
readonly | A collection of object style groups. | |
| ObjectStyles |
readonly | A collection of object styles. | |
| PageItemDefault | readonly | The default page item formatting for the Application. | |
| ParaStyleMappings |
readonly | A collection of para style mappings. | |
| ParagraphStyleGroups |
readonly | A collection of paragraph style groups. | |
| ParagraphStyles |
readonly | A collection of paragraph styles. | |
| Application | readonly | The parent of the Application (a Application). | |
| PasteboardPreference | readonly | Pasteboard preference settings. | |
| PDFExportPreference | readonly | A collection of PDF export preferences. | |
| PDFExportPresets |
readonly | A collection of PDF export presets. | |
| PDFPlacePreference | readonly | The PDF place preference properties that define how PDF files are placed in the current document. | |
| Number[] | readonly | The available performance metrics. | |
| String[] | readonly | Lists the extensions of file types that can be placed. | |
| String[] | readonly | Lists the types of files that can be placed. | |
| PNGExportPreference | readonly | PNG export preferences. | |
| PolygonPreference | readonly | Polygon preference properties to use to define default settings for creating a polygon. | |
| Preferences |
readonly | A collection of preferences objects. | |
| PreflightBookOption | readonly | Preflight book option settings. | |
| PreflightOption | readonly | Preflight option settings. | |
| PreflightProcesses |
readonly | A collection of preflight processes. | |
| PreflightProfiles |
readonly | A collection of preflight profiles. | |
| PreflightRules |
readonly | A collection of preflight rules. | |
| PrinterPresets |
readonly | A collection of printer presets. | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| ScriptArg | readonly | Arguments to pass to a script.In UXP, read arguments from script.args instead of app.scriptArgs.getValue(). | |
| ScriptPreference | readonly | Script preferences. | |
| String | readonly | The user's serial number. | |
| Number | readonly | The socket the server uses to service administrative requests. | |
| String | readonly | The name of the machine InDesignServer is running on; either symbolic (host.corp.com) or IP address (123.345.678.90). | |
| ServerSetting | readonly | Runtime settings specific to server. | |
| SpellPreference | readonly | Spell-check preferences. | |
| StoryGridDataInformation | readonly | Default properties specific to frame grids. | |
| StoryPreference | readonly | Story preference settings. | |
| StripedStrokeStyles |
readonly | A collection of striped stroke styles. | |
| StrokeStyles |
readonly | A collection of stroke styles. | |
| Swatches |
readonly | A collection of swatches. | |
| TableStyleGroups |
readonly | A collection of table style groups. | |
| TableStyleMappings |
readonly | A collection of table style mappings. | |
| TableStyles |
readonly | A collection of table styles. | |
| TaggedPDFPreference | readonly | Tagged PDF preferences. | |
| TaggedTextExportPreference | readonly | Tagged text export preferences. | |
| TaggedTextImportPreference | readonly | Tagged text import preferences. | |
| TextDefault | readonly | Text default settings. | |
| TextExportPreference | readonly | Text export preferences. | |
| TextFramePreference | readonly | Text frame preference settings. | |
| TextImportPreference | readonly | Text import preferences. | |
| TextPreference | readonly | Text preference settings. | |
| TextVariables |
readonly | A collection of text variables. | |
| TextWrapPreference | readonly | The text wrap preference properties that define the default formatting for wrapping text around objects. | |
| Tints |
readonly | A collection of tints. | |
| TrackChangesPreference | readonly | Track changes preference settings. | |
| TransformPreference | readonly | Transform preference properties that define default behaviors when transforming objects. Note: Transforming includes rotation, scaling, flipping, and shearing. | |
| TransformationMatrices |
readonly | A collection of transformation matrices. | |
| TransparencyPreference | readonly | Transparency preference settings. | |
| TrapPresets |
readonly | A collection of trap presets. | |
| Swatch[] | readonly | The swatches that are not being used. | |
| String | readonly | The current user's adobe id | |
| 3 Reals (0 - 255)[] | InCopyUIColors[] | read/write | The color assigned to the tracked changes and notes created by the user, specified either as an array of three doubles, each in the range 0 to 255 and representing R, G, and B values, or as an InCopy UI color. Can return: Array of 3 Reals (0 - 255) or InCopyUIColors enumerator. | |
| UserDictionaries |
readonly | A collection of user dictionaries. | |
| String | readonly | The current user's GUID | |
| String | read/write | The user associated with the tracked changes and notes. | |
| String | readonly | The application version. | |
| ViewPreference | readonly | View preference settings. | |
| WatermarkPreference | readonly | Watermark preferences | |
| WordRTFImportPreference | readonly | Word and RTF import preferences. | |
| XMLExportMaps |
readonly | A collection of XML export maps. | |
| XMLExportPreference | readonly | XML export preference settings. | |
| XMLImportMaps |
readonly | A collection of XML import maps. | |
| XMLImportPreference | readonly | XML import preference settings. | |
| XMLPreference | readonly | The XML preference settings. | |
| XMLRuleProcessors |
readonly | A collection of XML rule processors. | |
| XMLTags |
readonly | A collection of XML tags. |
Events
| Name | Description |
|---|---|
| Dispatched after a Document is closed. This event bubbles. This event is not cancelable. | |
| Dispatched when the Application is quitting. Since the quit has been committed, it can not be canceled. This event bubbles. This event is not cancelable. | |
| Dispatched before a Document is created. This event bubbles. This event is cancelable. | |
| Dispatched before a Document is opened. This event bubbles. This event is cancelable. | |
| Dispatched before the Application is quit. Allows the quit to be canceled. This event bubbles. This event is cancelable. |
Methods
[For internal use only] Add Font Directory from specific path.
Finds color that matches the find what value and replaces the color with the change to value.
Finds glyphs that match the find what value and replaces the glyphs with the change to value.
Finds text that matches the find what value and replaces the text with the change to value.
Finds objects that match the find what value and replace the objects with the change to value.
Finds text that matches the find what value and replaces the text with the change to value.
Finds text that matches the find character type value and replaces the text with the change character type value.
Clears all errors in the error list.
Removes the frame fittings options and resets it to the initial state.
Transforms color values
Outputs the specified message to std err.
Outputs the specified message to std out.
Create a mini-folio out of asset and overlay descriptions. Schema for the mini folio description: || Key || Type || Required? || Description || | contentstackid | string | yes | The explicit ID to be used for this stack | | tocImage | file | no | The TOC image for the mini-folio | | narrowdimension | int | no | Targetted export size, measured along narrow dimension | | widedimension | int | no | Targetted export size, measured along wide dimension | | smoothscrolling | @enum(SmoothScrollingOptions) | no | The smooth scrolling behavior for this stack (default is noSmoothScroll) | | locationforgeneratedassets | file | no | If included, this is an existing directory where the generated assets should be created. | | overlays | array | no | see the SDK Overlay Builder APIs | | assets | array | yes | The assets for the mini - folio, described below. | | assetDependencies | array | no | Files that are needed by the asset, that will be included in the package but not the manifest. | | metadata | array | no | The metadata for the mini-folio described below. | | showprogressbar | boolean | no | Either true or false to indicate whether we should show a progress bar (default is false) | | targetviewerversion | string | no | If provided (in the form "major.minor.revision") a folio compatible with the viewer version is produced. If omitted, the latest folio format is produced. | CS5 | The following are fields in the array for "assets": || Key || Type || Required? || Description || | file | file | yes | The asset file | | type | string | yes | The asset file type, either "web" for HTML or "image" for a raster | | width | int | yes | The asset width | | height | int | yes | The asset height | | orientation | string | yes | The asset orientation, either "portrait" or "landscape" | | thumbnail | file | no | A thumbnail of the asset to be used in browse mode | | scrubber | file | no | A thumbnail of the asset to be used in scrubber mode | The following are fields in the array for "assetDependencies": || Key || Type || Required? || Description || | file | file | no | The dependent file | | relativePath | string | no | The relative path to the file, for use in the package | The following are fields in the array for "metadata": || Key || Type || Required? || Description || | any string | string or boolean | no | any key/value where the key is a string, and the value is either a string or a boolean, such as those described in "export folio meta data" |
Deletes the specified find/change query.
Deletes unused XML markup tags.
Executes the script in the specified language as a single transaction.
Dumps memory allocations from all marks in the specified range.
Dumps memory allocations from the specified mark.
Export the specified documents to an article folio. Note: This method behaves identically to @method(exportMiniFolio), but differs in its return value. @method(exportMiniFolio) returns an array of warning strings whereas this method returns an XML structure.
Export the specified document to a DPS article. Note: This method behaves similarly to @method(exportMiniFolio), but differs in its parameters.
Export the selected documents to a directory.
Export the selected documents to a compressed folio file that contains non-compressed mini folios.
Export the selected documents to a compressed folio file that contains compressed mini folios.
Export the specified documents to a mini-folio.
Export the presets to a file.
export the customised settings
Exports stroke styles or presets.
Gets the label value associated with the specified key.
Finds color that matches the find what value.
Finds glyphs that match the find what value.
Finds text that matches the find what value.
Returns the locale-independent string(s) from the internal string localization database that correspond to the specified string (in the current locale).
Finds objects that match the find what value.
Finds text that matches the find what value.
Finds text that matches the find character type value.
Generate schema for IDML.
Get all overlays.
Internal Use Only.
Get the current digital publishing article version number for the given parameter.
Get the current digital publishing version number for the given parameter.
Resolves the object specifier, creating an array of object references.
Internal Use Only.
Get the list of article viewer versions the digital publishing plugin supports.
Get the list of viewer versions the digital publishing plugin supports.
Gets the count which will be used in the name of the next untitled document.
Internal Use Only
Imports a process color swatch from a preloaded Adobe color book.
Imports a spot color swatch from an Adobe color book.
Imports presets from the specified file.
import the customised settings
Imports the specified styles.
Sets the label to the value associated with the specified key.
Internal use only: a black box method for use by InDesign Engineering team only.
Load conditions from the specified file.
Loads the specified find/change query.
Load motion preset from the specified file.
Load preflight profile from the specified file.
Load swatches from the specified file.
Loads a set of XML markup tags from the specified file.
Gets the memory statistics from the server.
Mount a Version Cue project.
Generate the license report for the active instance
Opens the specified document, book, or library.
Package a folder into a UCF file.
Gets the current value of the specified performance metric.
Gets the long name of the specified performance metric.
Gets the short name of the specified performance metric.
Prints the specified file(s).
Quits the application.
Internal use only: Recovers the specified document.
Removes the event listener.
[For internal use only] Remove Font Directory for specific path.
reset to default preferences
Saves the specified find/change query.
Saves the specified swatch(es) to a swatchbook file.
Saves a set of tags to an external file.
Executes a server test.
Sets the application's preferences.
Sets the count which will be used in the name of the next untitled document.
Generates a string which, if executed, will return the Application.
Retrieves the object specifier.
Translates a key string into localized form based on current application locale.
Unpackage a UCF file into a folder structure.
Forces a check for new fonts in the various Fonts folders.
Object of 157
Properties elsewhere that hold a Application.
Parameter of 10
Method parameters that accept a Application.
Return 1
Methods that return a Application.