Adobe InDesign CS5 Server (7.0) Object Model JS: Application

InDesign Server CS5

Class

Application

 The application.

QuickLinks

addEventListener, changeGlyph, changeGrep, changeObject, changeText, changeTransliterate, clearAllErrors, clearFrameFittingOptions, consoleerr, consoleout, deleteFindChangeQuery, deleteUnusedTags, doScript, dumpBetweenMemoryMarks, dumpFromMemoryMark, exportPresets, exportStrokeStyles, extractLabel, findGlyph, findGrep, findKeyStrings, findObject, findText, findTransliterate, generateCorbaApi, generateIDMLSchema, getElements, importAdobeSwatchbookProcessColor, importAdobeSwatchbookSpotColor, importFile, importStyles, insertLabel, loadConditions, loadFindChangeQuery, loadMotionPreset, loadPreflightProfile, loadSwatches, loadXMLTags, memoryStatistics, mountProject, open, packageUCF, performanceMetric, performanceMetricLongName, performanceMetricShortName, print, quit, removeEventListener, saveFindChangeQuery, saveSwatches, saveXMLTags, serverTest, setApplicationPreferences, toSource, toSpecifier, translateKeyString, unpackageUCF, updateFonts

Hierarchy

Application
Application
AlignDistributePreference | AnchoredObjectDefault | AnchoredObjectSetting | Application | AutoCorrectPreference | AutoCorrectTable | BaselineFrameGridOption | Book | ButtonPreference | CellStyle | CellStyleGroup | ChangeGlyphPreference | ChangeGrepPreference | ChangeObjectPreference | ChangeTextPreference | ChangeTransliteratePreference | CharacterStyle | CharacterStyleGroup | CjkGridPreference | ClipboardPreference | Color | ColorSetting | CompositeFont | Condition | ConditionSet | ConditionalTextPreference | DashedStrokeStyle | DataMergeOption | DictionaryPreference | Document | DocumentEvent | DocumentPreference | DocumentPreset | DottedStrokeStyle | EPSExportPreference | EPSImportPreference | ErrorListError | Event | EventListener | ExcelImportPreference | ExportForWebPreference | FindChangeGlyphOption | FindChangeGrepOption | FindChangeObjectOption | FindChangeTextOption | FindChangeTransliterateOption | FindGlyphPreference | FindGrepPreference | FindObjectPreference | FindTextPreference | FindTransliteratePreference | FlattenerPreset | Font | FontLockingPreference | FootnoteOption | FrameFittingOption | GeneralPreference | Gradient | GridPreference | GridPrintingPreference | GuidePreference | IdleTask | ImageIOPreference | ImagePreference | ImportExportEvent | ImportedPageAttribute | InCopyExportOption | IndexOptions | IndexingSortOption | Ink | InteractivePDFExportPreference | JPEGExportPreference | KinsokuTable | LanguageWithVendors | LayoutAdjustmentPreference | LayoutGridDataInformation | Library | LinkingPreference | MarginPreference | MixedInk | MixedInkGroup | MojikumiTable | MojikumiUiPreference | MotionPreset | MutationEvent | NamedGrid | NumberingList | ObjectStyle | ObjectStyleGroup | PDFExportPreference | PDFExportPreset | PDFPlacePreference | PageItemDefault | ParagraphStyle | ParagraphStyleGroup | PasteboardPreference | PolygonPreference | Preference | PreflightBookOption | PreflightOption | PreflightProcess | PreflightProfile | PreflightRule | PrinterPreset | SWFExportPreference | ScriptArg | ScriptPreference | ServerSetting | SpellPreference | StoryGridDataInformation | StoryPreference | StripedStrokeStyle | StrokeStyle | Swatch | TableStyle | TableStyleGroup | TaggedTextExportPreference | TaggedTextImportPreference | TextDefault | TextExportPreference | TextFramePreference | TextImportPreference | TextPreference | TextVariable | TextWrapPreference | Tint | TrackChangesPreference | TransformPreference | TransformationMatrix | TransparencyPreference | TrapPreset | UserDictionary | ViewPreference | WatermarkPreference | WordRTFImportPreference | XFLExportPreference | XMLExportMap | XMLExportPreference | XMLImportMap | XMLImportPreference | XMLPreference | XMLRuleProcessor | XMLTag

Properties

PropertyTypeAccessDescription
activeBookBook r/wThe active book.
activeScriptFile readonlyThe current script running from the Scripts panel.
activeScriptUndoModeUndoModes:
UndoModes.SCRIPT_REQUEST
UndoModes.ENTIRE_SCRIPT
UndoModes.AUTO_UNDO
UndoModes.FAST_ENTIRE_SCRIPT
readonlyThe undo mode for the current script execution.
alignDistributePreferencesAlignDistributePreference readonlyPreferences for alignment and distribution.
allCellStyles Array of CellStyle readonlyAll Cell styles
allCharacterStyles Array of CharacterStyle readonlyLists all character styles (regardless of their group).
allObjectStyles Array of ObjectStyle readonlyAll object styles contained by the Application.
allParagraphStyles Array of ParagraphStyle readonlyLists all paragraph styles (regardless of their group).
allPreflightObjectTypes Array of string readonlyThe list of all object types (strings) a preflight rule can operate on.
allPreflightRuleCategories Array of string readonlyThe list of all categories that have been declared by rules.
allPreflightRuleIDs Array of string readonlyThe list of all known (declared) rule IDs.
allTableStyles Array of TableStyle readonlyAll Table styles
anchoredObjectDefaultsAnchoredObjectDefault readonlyAnchored object default settings.
anchoredObjectSettingsAnchoredObjectSetting readonlyAnchored object settings.
autoCorrectPreferencesAutoCorrectPreference readonlyAuto-correct preferences.
autoCorrectTablesAutoCorrectTables readonlyA collection of auto-correct tables.
baselineFrameGridOptionsBaselineFrameGridOption readonlyBaseline frame grid option settings.
booksBooks readonlyA collection of books.
buttonPreferencesButtonPreference readonlyButton preference settings.
cellStyleGroupsCellStyleGroups readonlyA collection of cell style groups.
cellStylesCellStyles readonlyA collection of cell styles.
changeGlyphPreferencesChangeGlyphPreference
NothingEnum
r/wChange glyph preferences. Can also accept: NothingEnum enumerator.
changeGrepPreferencesChangeGrepPreference
NothingEnum
r/wChange grep preferences. Can also accept: NothingEnum enumerator.
changeObjectPreferencesChangeObjectPreference
NothingEnum
r/wChange object preferences. Can also accept: NothingEnum enumerator.
changeTextPreferencesChangeTextPreference
NothingEnum
r/wChange text preferences. Can also accept: NothingEnum enumerator.
changeTransliteratePreferencesChangeTransliteratePreference
NothingEnum
r/wChange transliterate preferences. Can also accept: NothingEnum enumerator.
characterStyleGroupsCharacterStyleGroups readonlyA collection of character style groups.
characterStylesCharacterStyles readonlyA collection of character styles.
cjkGridPreferencesCjkGridPreference readonlyCJK grid preference settings.
clearOverridesWhenApplyingStylebool r/wClear overrides first before applying object style
clipboardPreferencesClipboardPreference readonlyClipboard preference properties that define the way that the application interacts with the system clipboard.
colorSettingsColorSetting readonlyColor setting properties that define color management defaults.
colorsColors readonlyA collection of colors.
compositeFontsCompositeFonts readonlyA collection of composite fonts.
conditionSetsConditionSets readonlyA collection of condition sets for conditional text.
conditionalTextPreferencesConditionalTextPreference readonlyConditional text preferences.
conditionsConditions readonlyA collection of conditions for conditional text.
dashedStrokeStylesDashedStrokeStyles readonlyA collection of dashed stroke styles.
dataMergeOptionsDataMergeOption readonlyThe data merge option properties that define the data merge.
dictionaryPreferencesDictionaryPreference readonlyUser dictionary preference settings.
documentPreferencesDocumentPreference readonlyDocument preference settings.
documentPresetsDocumentPresets readonlyA collection of document presets.
documentsDocuments readonlyA collection of documents.
dottedStrokeStylesDottedStrokeStyles readonlyA collection of dotted stroke styles.
epsExportPreferencesEPSExportPreference readonlyEPS export preferences.
epsImportPreferencesEPSImportPreference readonlyEPS import preferences.
errorListErrorsErrorListErrors readonlyA collection of error list errors.
eventListenersEventListeners readonlyA collection of event listeners.
eventsEvents readonlyA collection of events.
excelImportPreferencesExcelImportPreference readonlyExcel import preferences.
exportForWebPreferencesExportForWebPreference readonlyThe default export for web preferences.
featureSetFeatureSetOptions:
FeatureSetOptions.ROMAN
FeatureSetOptions.JAPANESE
FeatureSetOptions.RIGHTTOLEFT
readonlyThe feature set.
filePathFile readonlyThe full path to the file.
findChangeGlyphOptionsFindChangeGlyphOption
NothingEnum
r/wFind/change glyph options. Can also accept: NothingEnum enumerator.
findChangeGrepOptionsFindChangeGrepOption
NothingEnum
r/wFind/change grep options. Can also accept: NothingEnum enumerator.
findChangeObjectOptionsFindChangeObjectOption
NothingEnum
r/wFind/change object options. Can also accept: NothingEnum enumerator.
findChangeTextOptionsFindChangeTextOption
NothingEnum
r/wFind/change text options. Can also accept: NothingEnum enumerator.
findChangeTransliterateOptionsFindChangeTransliterateOption
NothingEnum
r/wFind/change transliterate options. Can also accept: NothingEnum enumerator.
findGlyphPreferencesFindGlyphPreference
NothingEnum
r/wFind glyph preferences. Can also accept: NothingEnum enumerator.
findGrepPreferencesFindGrepPreference
NothingEnum
r/wFind grep preferences. Can also accept: NothingEnum enumerator.
findObjectPreferencesFindObjectPreference
NothingEnum
r/wFind object preferences. Can also accept: NothingEnum enumerator.
findTextPreferencesFindTextPreference
NothingEnum
r/wFind text preferences. Can also accept: NothingEnum enumerator.
findTransliteratePreferencesFindTransliteratePreference
NothingEnum
r/wFind transliterate preferences. Can also accept: NothingEnum enumerator.
flattenerPresetsFlattenerPresets readonlyA collection of transparency flattener presets.
fontLockingPreferencesFontLockingPreference readonlyFont locking preference settings.
fontsFonts readonlyA collection of fonts.
footnoteOptionsFootnoteOption readonlyFootnote option settings.
frameFittingOptionsFrameFittingOption readonlyThe frame fitting option to apply to placed or pasted content. Can be applied to a frame, object style, or document or to the application.
fullNameFile readonlyThe full path to the Application, including the name of the Application.
generalPreferencesGeneralPreference readonlyGeneral preference settings.
gradientsGradients readonlyA collection of gradients.
gridPreferencesGridPreference readonlyGrid preference settings.
gridPrintingPreferencesGridPrintingPreference readonlyGrid printing preference and export settings.
guidePreferencesGuidePreference readonlyGuide preference settings.
idleTasksIdleTasks readonlyAll attachable idle tasks.
imageIOPreferencesImageIOPreference readonlyThe image I/O preference properties that define preferences for importing images.
imagePreferencesImagePreference readonlyImage preferences.
importedPageAttributesImportedPageAttribute readonlyPlaced InDesign page attributes.
incopyExportOptionsInCopyExportOption readonlyExport options for InCopy INCX document format.
indexGenerationOptionsIndexOptions readonlyThe index options properties that define how an index is formatted.
indexingSortOptionsIndexingSortOptions readonlyA collection of indexing sort options.
inksInks readonlyA collection of inks.
interactivePDFExportPreferencesInteractivePDFExportPreference readonlyInteractive PDF export preferences.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
jpegExportPreferencesJPEGExportPreference readonlyJPEG export preferences.
kinsokuTablesKinsokuTables readonlyA collection of kinsoku tables.
labelstring r/wA property that can be set to any string.
languagesWithVendorsLanguagesWithVendors readonlyA collection of languages with vendors.
layoutAdjustmentPreferencesLayoutAdjustmentPreference readonlyLayout sdjustment preference settings.
layoutGridDataLayoutGridDataInformation readonlyDefault properties specific to layout grids.
librariesLibraries readonlyA collection of object libraries.
linkingPreferencesLinkingPreference readonlyThe links preference properties that define preferences for links.
localeLocale:
Locale.DANISH_LOCALE
Locale.ENGLISH_LOCALE
Locale.INTERNATIONAL_ENGLISH_LOCALE
Locale.FINNISH_LOCALE
Locale.FRENCH_LOCALE
Locale.GERMAN_LOCALE
Locale.ITALIAN_LOCALE
Locale.PORTUGUESE_LOCALE
Locale.SPANISH_LOCALE
Locale.SWEDISH_LOCALE
Locale.JAPANESE_LOCALE
Locale.ARABIC_LOCALE
Locale.CZECH_LOCALE
Locale.GREEK_LOCALE
Locale.HEBREW_LOCALE
Locale.HUNGARIAN_LOCALE
Locale.POLISH_LOCALE
Locale.ROMANIAN_LOCALE
Locale.RUSSIAN_LOCALE
Locale.TURKISH_LOCALE
Locale.UKRAINIAN_LOCALE
Locale.KOREAN_LOCALE
Locale.SIMPLIFIED_CHINESE_LOCALE
Locale.TRADITIONAL_CHINESE_LOCALE
readonlyThe locale of the application.
marginPreferencesMarginPreference readonlyMargin preference settings.
mixedInkGroupsMixedInkGroups readonlyA collection of mixed ink groups.
mixedInksMixedInks readonlyA collection of mixed inks.
mojikumiTablesMojikumiTables readonlyA collection of mojikumi tables.
mojikumiUIPreferencesMojikumiUiPreference readonlyMojikumi user interface preference settings.
motionPresetsMotionPresets readonlyA collection of Motion presets.
namestring readonlyThe name of the Application.
namedGridsNamedGrids readonlyA collection of named grids.
numberingListsNumberingLists readonlyA collection of numbered lists.
objectStyleGroupsObjectStyleGroups readonlyA collection of object style groups.
objectStylesObjectStyles readonlyA collection of object styles.
pageItemDefaultsPageItemDefault readonlyThe default page item formatting for the Application.
paragraphStyleGroupsParagraphStyleGroups readonlyA collection of paragraph style groups.
paragraphStylesParagraphStyles readonlyA collection of paragraph styles.
parentApplication readonlyThe parent of the Application (a Application).
pasteboardPreferencesPasteboardPreference readonlyPasteboard preference settings.
pdfExportPreferencesPDFExportPreference readonlyA collection of PDF export preferences.
pdfExportPresetsPDFExportPresets readonlyA collection of PDF export presets.
pdfPlacePreferencesPDFPlacePreference readonlyThe PDF place preference properties that define how PDF files are placed in the current document.
performanceMetrics Array of number readonlyThe available performance metrics.
placeableFileExtensions Array of string readonlyLists the extensions of file types that can be placed.
placeableFileTypes Array of string readonlyLists the types of files that can be placed.
polygonPreferencesPolygonPreference readonlyPolygon preference properties to use to define default settings for creating a polygon.
preferencesPreferences readonlyA collection of preferences objects.
preflightBookOptionsPreflightBookOption readonlyPreflight book option settings.
preflightOptionsPreflightOption readonlyPreflight option settings.
preflightProcessesPreflightProcesses readonlyA collection of preflight processes.
preflightProfilesPreflightProfiles readonlyA collection of preflight profiles.
preflightRulesPreflightRules readonlyA collection of preflight rules.
printerPresetsPrinterPresets readonlyA collection of printer presets.
propertiesObject r/wA property that allows setting of several properties at the same time.
scriptArgsScriptArg readonlyArguments to pass to a script.
scriptPreferencesScriptPreference readonlyScript preferences.
serialNumberstring readonlyThe user's serial number.
serverSettingsServerSetting readonlyRuntime settings specific to server.
spellPreferencesSpellPreference readonlySpell-check preferences.
storyGridDataStoryGridDataInformation readonlyDefault properties specific to frame grids.
storyPreferencesStoryPreference readonlyStory preference settings.
stripedStrokeStylesStripedStrokeStyles readonlyA collection of striped stroke styles.
strokeStylesStrokeStyles readonlyA collection of stroke styles.
swatchesSwatches readonlyA collection of swatches.
swfExportPreferencesSWFExportPreference readonlySWF export preferences.
tableStyleGroupsTableStyleGroups readonlyA collection of table style groups.
tableStylesTableStyles readonlyA collection of table styles.
taggedTextExportPreferencesTaggedTextExportPreference readonlyTagged text export preferences.
taggedTextImportPreferencesTaggedTextImportPreference readonlyTagged text import preferences.
textDefaultsTextDefault readonlyText default settings.
textExportPreferencesTextExportPreference readonlyText export preferences.
textFramePreferencesTextFramePreference readonlyText frame preference settings.
textImportPreferencesTextImportPreference readonlyText import preferences.
textPreferencesTextPreference readonlyText preference settings.
textVariablesTextVariables readonlyA collection of text variables.
textWrapPreferencesTextWrapPreference readonlyThe text wrap preference properties that define the default formatting for wrapping text around objects.
tintsTints readonlyA collection of tints.
trackChangesPreferencesTrackChangesPreference readonlyTrack changes preference settings.
transformPreferencesTransformPreference readonlyTransform preference properties that define default behaviors when transforming objects. Note: Transforming includes rotation, scaling, flipping, and shearing.
transformationMatricesTransformationMatrices readonlyA collection of transformation matrices.
transparencyPreferencesTransparencyPreference readonlyTransparency preference settings.
trapPresetsTrapPresets readonlyA collection of trap presets.
unusedSwatches Array of Swatch readonlyThe swatches that are not being used.
userColor3 Reals (0 - 255)
InCopyUIColors
r/wThe 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.
userDictionariesUserDictionaries readonlyA collection of user dictionaries.
userNamestring r/wThe user associated with the tracked changes and notes.
versionstring readonlyThe application version.
viewPreferencesViewPreference readonlyView preference settings.
watermarkPreferencesWatermarkPreference readonlyWatermark preferences
wordRTFImportPreferencesWordRTFImportPreference readonlyWord and RTF import preferences.
xflExportPreferencesXFLExportPreference readonlyXFL export preferences.
xmlExportMapsXMLExportMaps readonlyA collection of XML export maps.
xmlExportPreferencesXMLExportPreference readonlyXML export preference settings.
xmlImportMapsXMLImportMaps readonlyA collection of XML import maps.
xmlImportPreferencesXMLImportPreference readonlyXML import preference settings.
xmlPreferencesXMLPreference readonlyThe XML preference settings.
xmlRuleProcessorsXMLRuleProcessors readonlyA collection of XML rule processors.
xmlTagsXMLTags readonlyA collection of XML tags.

Class

PropertyTypeAccessDescription
AFTER_CLOSEstring readonlyDispatched after a Document is closed. This event bubbles. This event is not cancelable. (default: afterClose)
AFTER_QUITstring readonlyDispatched when the Application is quitting. Since the quit has been committed, it can not be canceled. This event bubbles. This event is not cancelable. (default: afterQuit)
BEFORE_NEWstring readonlyDispatched before a Document is created. This event bubbles. This event is cancelable. (default: beforeNew)
BEFORE_OPENstring readonlyDispatched before a Document is opened. This event bubbles. This event is cancelable. (default: beforeOpen)
BEFORE_QUITstring readonlyDispatched before the Application is quit. Allows the quit to be canceled. This event bubbles. This event is cancelable. (default: beforeQuit)

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of Text changeGlyph ([reverseOrder: bool])
Finds glyphs that match the find what value and replaces the glyphs with the change to value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text changeGrep ([reverseOrder: bool])
Finds text that matches the find what value and replaces the text with the change to value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of PageItem changeObject ([reverseOrder: bool])
Finds objects that match the find what value and replace the objects with the change to value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text changeText ([reverseOrder: bool])
Finds text that matches the find what value and replaces the text with the change to value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text changeTransliterate ([reverseOrder: bool])
Finds text that matches the find character type value and replaces the text with the change character type value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

void clearAllErrors ()
Clears all errors in the error list.

void clearFrameFittingOptions ()
Removes the frame fittings options and resets it to the initial state.

void consoleerr (message: string)
Outputs the specified message to std err.

ParameterTypeDescription
messagestringThe message.

void consoleout (message: string)
Outputs the specified message to std out.

ParameterTypeDescription
messagestringThe message.

void deleteFindChangeQuery (queryName: string, searchMode: SearchModes)
Deletes the specified find/change query.

ParameterTypeDescription
queryNamestringThe query to delete.
searchModeSearchModes:
SearchModes.TEXT_SEARCH
SearchModes.GREP_SEARCH
SearchModes.GLYPH_SEARCH
SearchModes.OBJECT_SEARCH
SearchModes.TRANSLITERATE_SEARCH
The search mode.

void deleteUnusedTags ()
Deletes unused XML markup tags.

any doScript (script: varies[, language: ScriptLanguage=ScriptLanguage.UNKNOWN][, withArguments: Array of any][, undoMode: UndoModes=UndoModes.SCRIPT_REQUEST][, undoName: string=Script])
Executes the script in the specified language as a single transaction.

ParameterTypeDescription
scriptFile
JavaScript Function
String
The script to execute. Can accept: File, String or JavaScript Function.
languageScriptLanguage:
ScriptLanguage.UNKNOWN
ScriptLanguage.JAVASCRIPT
ScriptLanguage.APPLESCRIPT_LANGUAGE
The language of the script to execute. If not specified, uses the language used to call this method. (Optional) (default: ScriptLanguage.UNKNOWN)
withArguments Array of any An array of arguments passed to the script. (Optional)
undoModeUndoModes:
UndoModes.SCRIPT_REQUEST
UndoModes.ENTIRE_SCRIPT
UndoModes.AUTO_UNDO
UndoModes.FAST_ENTIRE_SCRIPT
How to undo this script. (Optional) (default: UndoModes.SCRIPT_REQUEST)
undoNamestringThe name of the undo step for entire script undo mode. (Optional) (default: Script)

void dumpBetweenMemoryMarks (from: number, to: number)
Dumps memory allocations from all marks in the specified range.

ParameterTypeDescription
fromnumberThe first mark in the range.
tonumberThe last mark in the range.

void dumpFromMemoryMark (from: number)
Dumps memory allocations from the specified mark.

ParameterTypeDescription
fromnumberThe mark from which to dump memory.

void exportPresets (format: ExportPresetFormat, to: File[, versionComments: string][, forceSave: bool=false])
Export the presets to a file.

ParameterTypeDescription
formatExportPresetFormat:
ExportPresetFormat.PDF_EXPORT_PRESETS_FORMAT
ExportPresetFormat.PRINTER_PRESETS_FORMAT
ExportPresetFormat.FLATTENER_PRESETS_FORMAT
ExportPresetFormat.DOCUMENT_PRESETS_FORMAT
The preset format.
toFileThe file to export to.
versionCommentsstringThe comments for this version. (Optional)
forceSaveboolForcibly save a version. (Optional) (default: false)

void exportStrokeStyles (to: File, strokeStyleList: Array of StrokeStyle[, versionComments: string][, forceSave: bool=false])
Exports stroke styles or presets.

ParameterTypeDescription
toFileThe file to save to
strokeStyleList Array of StrokeStyleThe list of stroke styles to save
versionCommentsstringThe comment for this version (Optional)
forceSaveboolForcibly save a version (Optional) (default: false)

string extractLabel (key: string)
Gets the label value associated with the specified key.

ParameterTypeDescription
keystringThe key.

Array of Text findGlyph ([reverseOrder: bool])
Finds glyphs that match the find what value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text findGrep ([reverseOrder: bool])
Finds text that matches the find what value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of string findKeyStrings (for: string)
Returns the locale-independent string(s) from the internal string localization database that correspond to the specified string (in the current locale).

ParameterTypeDescription
forstringThe string to search for.

Array of PageItem findObject ([reverseOrder: bool])
Finds objects that match the find what value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text findText ([reverseOrder: bool])
Finds text that matches the find what value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

Array of Text findTransliterate ([reverseOrder: bool])
Finds text that matches the find character type value.

ParameterTypeDescription
reverseOrderboolIf true, returns the results in reverse order. (Optional)

void generateCorbaApi (destinationFolder: string)
Generates the Corba API from the scripting object model.

ParameterTypeDescription
destinationFolderstringThe destination folder for the API.

void generateIDMLSchema (to: File[, packageFormat: bool])
Generate schema for IDML.

ParameterTypeDescription
toFileThe folder path of the schema.
packageFormatboolIf true, generate schema for package format (multiple files). Default value is false. (Optional)

Array of Application getElements ()
Resolves the object specifier, creating an array of object references.

Color importAdobeSwatchbookProcessColor (name: string)
Imports a process color swatch from a preloaded Adobe color book.

ParameterTypeDescription
namestringThe process color to load.

Color importAdobeSwatchbookSpotColor (name: string)
Imports a spot color swatch from an Adobe color book.

ParameterTypeDescription
namestringThe spot color to load.

void importFile (format: ExportPresetFormat, from: File)
Imports presets from the specified file.

ParameterTypeDescription
formatExportPresetFormat:
ExportPresetFormat.PDF_EXPORT_PRESETS_FORMAT
ExportPresetFormat.PRINTER_PRESETS_FORMAT
ExportPresetFormat.FLATTENER_PRESETS_FORMAT
ExportPresetFormat.DOCUMENT_PRESETS_FORMAT
The type of preset to import.
fromFileThe file to import presets from.

void importStyles (format: ImportFormat, from: File[, globalStrategy: GlobalClashResolutionStrategy=GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE])
Imports the specified styles.

ParameterTypeDescription
formatImportFormat:
ImportFormat.CHARACTER_STYLES_FORMAT
ImportFormat.PARAGRAPH_STYLES_FORMAT
ImportFormat.TEXT_STYLES_FORMAT
ImportFormat.TOC_STYLES_FORMAT
ImportFormat.NAMED_GRIDS_FORMAT
ImportFormat.OBJECT_STYLES_FORMAT
ImportFormat.STROKE_STYLES_FORMAT
ImportFormat.TABLE_STYLES_FORMAT
ImportFormat.CELL_STYLES_FORMAT
ImportFormat.TABLE_AND_CELL_STYLES_FORMAT
The types of styles to import.
fromFileThe file containing the styles you want to import.
globalStrategyGlobalClashResolutionStrategy:
GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE
GlobalClashResolutionStrategy.LOAD_ALL_WITH_RENAME
GlobalClashResolutionStrategy.DO_NOT_LOAD_THE_STYLE
The resolution strategy to employ for imported styles that have the same names as existing styles. (Optional) (default: GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE)

void insertLabel (key: string, value: string)
Sets the label to the value associated with the specified key.

ParameterTypeDescription
keystringThe key.
valuestringThe value.

void loadConditions (from: File[, loadConditionSets: bool])
Load conditions from the specified file.

ParameterTypeDescription
fromFileThe path to the file that contains the conditions.
loadConditionSetsboolIf true, load the condition sets as well. (Optional)

void loadFindChangeQuery (queryName: string, searchMode: SearchModes)
Loads the specified find/change query.

ParameterTypeDescription
queryNamestringThe query to load.
searchModeSearchModes:
SearchModes.TEXT_SEARCH
SearchModes.GREP_SEARCH
SearchModes.GLYPH_SEARCH
SearchModes.OBJECT_SEARCH
SearchModes.TRANSLITERATE_SEARCH
The search mode.

MotionPreset loadMotionPreset (from: File)
Load motion preset from the specified file.

ParameterTypeDescription
fromFileThe Flash motion preset file.

PreflightProfile loadPreflightProfile (from: File)
Load preflight profile from the specified file.

ParameterTypeDescription
fromFileThe InDesign preflight profile file or InDesign document.

void loadSwatches (from: File)
Load swatches from the specified file.

ParameterTypeDescription
fromFileThe swatch file or InDesign document.

void loadXMLTags (from: File)
Loads a set of XML markup tags from the specified file.

ParameterTypeDescription
fromFileThe path to the file that contains the tags.

Array of number memoryStatistics ()
Gets the memory statistics from the server.

void mountProject (serverURL: string, projectName: string)
Mount a Version Cue project.

ParameterTypeDescription
serverURLstringThe URL of the Version Cue server containing the project
projectNamestringThe name of the Version Cue project to mount

any open (from: varies[, openOption: OpenOptions=OpenOptions.DEFAULT_VALUE])
Opens the specified document, book, or library.

ParameterTypeDescription
from Array of Files
File
The file path(s) to the document, book, or library. Can accept: File or Array of Files.
openOptionOpenOptions:
OpenOptions.DEFAULT_VALUE
OpenOptions.OPEN_ORIGINAL
OpenOptions.OPEN_COPY
How to open the document. (Optional) (default: OpenOptions.DEFAULT_VALUE)

void packageUCF (sourceFolder: File, ucfFile: File[, mimeMediaType: string=application/vnd.adobe.indesign-idml-package])
Package a folder into a UCF file.

ParameterTypeDescription
sourceFolderFileThe folder to be packaged into an IDML file. Does not validate structure of the folder pursuant to the IDML spec. Caller is responsible for making sure the files in the folder are correctly organized.
ucfFileFileThe destination UCF file. Will be overwritten if it already exists.
mimeMediaTypestringThe MIME media type, default value identifies package as IDML. (Optional) (default: application/vnd.adobe.indesign-idml-package)

any performanceMetric (for: varies)
Gets the current value of the specified performance metric.

ParameterTypeDescription
forLong Integer
PerformanceMetricOptions
The status to get from InDesign. Can accept: Long Integer or PerformanceMetricOptions enumerator.

string performanceMetricLongName (for: varies)
Gets the long name of the specified performance metric.

ParameterTypeDescription
forLong Integer
PerformanceMetricOptions
The status to get from InDesign. Can accept: Long Integer or PerformanceMetricOptions enumerator.

string performanceMetricShortName (for: varies)
Gets the short name of the specified performance metric.

ParameterTypeDescription
forLong Integer
PerformanceMetricOptions
The status to get from InDesign. Can accept: Long Integer or PerformanceMetricOptions enumerator.

void print (from: varies[, using: varies][, withGrids: bool=false])
Prints the specified file(s).

ParameterTypeDescription
from Array of Files
File
One or more file paths. Can accept: File or Array of Files.
usingPrinterPreset
PrinterPresetTypes
Printer preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional)
withGridsboolWhether to print grids (Optional) (default: false)

void quit ([saving: SaveOptions=SaveOptions.NO])
Quits the application.

ParameterTypeDescription
savingSaveOptions:
SaveOptions.NO
SaveOptions.YES
The option to use for saving changes to open documents before quitting. (Optional) (default: SaveOptions.NO)

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

void saveFindChangeQuery (queryName: string, searchMode: SearchModes)
Saves the specified find/change query.

ParameterTypeDescription
queryNamestringThe query to save.
searchModeSearchModes:
SearchModes.TEXT_SEARCH
SearchModes.GREP_SEARCH
SearchModes.GLYPH_SEARCH
SearchModes.OBJECT_SEARCH
SearchModes.TRANSLITERATE_SEARCH
The search mode.

void saveSwatches (to: File, swatchList: Array of Swatch[, versionComments: string][, forceSave: bool=false])
Saves the specified swatch(es) to a swatchbook file.

ParameterTypeDescription
toFileThe swatchbook file to save to.
swatchList Array of SwatchThe swatch(es) to save.
versionCommentsstringThe comment for this version. (Optional)
forceSaveboolIf true, forcibly saves a version. (Optional) (default: false)

void saveXMLTags (to: File[, versionComments: string][, forceSave: bool=false])
Saves a set of tags to an external file.

ParameterTypeDescription
toFileThe full path to the file in which to save the tags.
versionCommentsstringThe comment for this version. (Optional)
forceSaveboolIf true, forcibly saves a version. (Optional) (default: false)

void serverTest (testName: string)
Executes a server test.

ParameterTypeDescription
testNamestringThe test to execute.

void setApplicationPreferences (applicationPreferences: varies)
Sets the application's preferences.

ParameterTypeDescription
applicationPreferencesFile
LanguageAndRegion
The IDML defaults file or enumeration. Can accept: File or LanguageAndRegion enumerator.

string toSource ()
Generates a string which, if executed, will return the Application.

string toSpecifier ()
Retrieves the object specifier.

string translateKeyString (for: string)
Translates a key string into localized form based on current application locale.

ParameterTypeDescription
forstringThe key string to translate

void unpackageUCF (ucfFile: File, destinationFolder: File)
Unpackage a UCF file into a folder structure.

ParameterTypeDescription
ucfFileFileThe UCF file to be unpackaged.
destinationFolderFileThe folder where you would like the UCF file unpackaged to. Will be created if it does not exist.

void updateFonts ()
Forces a check for new fonts in the various Fonts folders.

Element of

AlignDistributePreference.parent

AnchoredObjectDefault.parent

Application.parent

AutoCorrectPreference.parent

AutoCorrectTable.parent

Book.parent

ButtonPreference.parent

CellStyle.parent

CellStyleGroup.parent

ChangeGlyphPreference.parent

ChangeGrepPreference.parent

ChangeObjectPreference.parent

ChangeTextPreference.parent

ChangeTransliteratePreference.parent

CharacterStyle.parent

CharacterStyleGroup.parent

CjkGridPreference.parent

ClipboardPreference.parent

Color.parent

ColorSetting.parent

CompositeFont.parent

Condition.parent

ConditionSet.parent

ConditionalTextPreference.parent

DashedStrokeStyle.parent

DataMergeOption.parent

DictionaryPreference.parent

Document.parent

DocumentEvent.parent

DocumentPreference.parent

DocumentPreset.parent

DottedStrokeStyle.parent

EPSExportPreference.parent

EPSImportPreference.parent

ErrorListError.parent

ExcelImportPreference.parent

ExportForWebPreference.parent

FindChangeGlyphOption.parent

FindChangeGrepOption.parent

FindChangeObjectOption.parent

FindChangeTextOption.parent

FindChangeTransliterateOption.parent

FindGlyphPreference.parent

FindGrepPreference.parent

FindObjectPreference.parent

FindTextPreference.parent

FindTransliteratePreference.parent

FlattenerPreset.parent

Font.parent

FontLockingPreference.parent

FootnoteOption.parent

FrameFittingOption.parent

GeneralPreference.parent

Gradient.parent

GridPreference.parent

GridPrintingPreference.parent

GuidePreference.parent

IdleTask.parent

ImageIOPreference.parent

ImagePreference.parent

ImportExportEvent.parent

ImportedPageAttribute.parent

IndexOptions.parent

IndexingSortOption.parent

Ink.parent

InteractivePDFExportPreference.parent

JPEGExportPreference.parent

KinsokuTable.parent

LanguageWithVendors.parent

LayoutAdjustmentPreference.parent

LayoutGridDataInformation.parent

Library.parent

LinkingPreference.parent

MixedInk.parent

MixedInkGroup.parent

MojikumiTable.parent

MojikumiUiPreference.parent

MotionPreset.parent

NamedGrid.parent

NumberingList.parent

ObjectStyle.parent

ObjectStyleGroup.parent

PDFExportPreference.parent

PDFExportPreset.parent

PDFPlacePreference.parent

PageItemDefault.parent

ParagraphStyle.parent

ParagraphStyleGroup.parent

PasteboardPreference.parent

PolygonPreference.parent

PreflightBookOption.parent

PreflightOption.parent

PreflightProcess.parent

PreflightProfile.parent

PreflightRule.parent

PrinterPreset.parent

SWFExportPreference.parent

ScriptArg.parent

ScriptPreference.parent

ServerSetting.parent

SpellPreference.parent

StoryGridDataInformation.parent

StripedStrokeStyle.parent

StrokeStyle.parent

Swatch.parent

TableStyle.parent

TableStyleGroup.parent

TaggedTextExportPreference.parent

TaggedTextImportPreference.parent

TextDefault.parent

TextExportPreference.parent

TextImportPreference.parent

TextPreference.parent

TextVariable.parent

Tint.parent

TrackChangesPreference.parent

TransformPreference.parent

TransformationMatrix.parent

TransparencyPreference.parent

TrapPreset.parent

UserDictionary.parent

ViewPreference.parent

WatermarkPreference.parent

WordRTFImportPreference.parent

XFLExportPreference.parent

XMLExportMap.parent

XMLExportPreference.parent

XMLImportMap.parent

XMLImportPreference.parent

XMLPreference.parent

XMLRuleProcessor.parent

XMLTag.parent

Return

Array of Application Application.getElements ()

Jongware, 23-Mar-2011 v3.0.3dContents :: Index