Adobe InDesign CS3 (5.0) Object Model JS: Application

InDesign CS3

Class

Application

 The application.

QuickLinks

activate, addEventListener, applyMenuCustomization, applyWorkspace, cascadeWindows, changeGlyph, changeGrep, changeObject, changeText, copy, cut, deleteFindChangeQuery, deleteUnusedTags, doScript, exportPresets, exportStrokeStyles, extractLabel, findGlyph, findGrep, findKeyStrings, findObject, findText, getElements, getTextShapingPresetsList, importAdobeSwatchbookProcessColor, importAdobeSwatchbookSpotColor, importFile, importStyles, insertLabel, loadFindChangeQuery, loadSwatches, loadXMLTags, open, paste, pasteInPlace, pasteInto, pasteWithoutFormatting, place, print, quit, redo, removeEventListener, saveFindChangeQuery, saveSwatches, saveXMLTags, select, tasmeemGetACEFontsList, tasmeemGetNextVariations, tasmeemGetSegments, tasmeemInitializeWordShaper, tileWindows, toSource, toSpecifier, translateKeyString, undo, updateFonts

Hierarchy

Application
Application
AlignDistributePreference | AnchoredObjectDefault | AnchoredObjectSetting | Application | AutoCorrectPreference | AutoCorrectTable | BaselineFrameGridOption | Book | ButtonPreference | CellStyle | CellStyleGroup | ChangeGlyphPreference | ChangeGrepPreference | ChangeObjectPreference | ChangeTextPreference | CharacterStyle | CharacterStyleGroup | ClipboardPreference | Color | ColorSetting | DashedStrokeStyle | DataMergeOption | Dialog | DictionaryPreference | DisplayPerformancePreference | DisplaySetting | Document | DocumentEvent | DocumentPreference | DocumentPreset | DottedStrokeStyle | EPSExportPreference | EPSImportPreference | Event | EventListener | ExcelImportPreference | ExportForWebPreference | FindChangeGlyphOption | FindChangeGrepOption | FindChangeObjectOption | FindChangeTextOption | FindGlyphPreference | FindGrepPreference | FindObjectPreference | FindTextPreference | FlattenerPreset | Font | FootnoteOption | FrameFittingOption | GalleyPreference | GeneralPreference | GrabberPreference | Gradient | GridPreference | GuidePreference | IMEPreference | ImageIOPreference | ImagePreference | ImportExportEvent | ImportedPageAttribute | InCopyExportOption | IndexOptions | IndexingSortOption | Ink | JPEGExportPreference | LanguageWithVendors | LayoutAdjustmentPreference | LayoutWindow | Library | LibraryPanel | MarginPreference | Menu | MenuAction | MixedInk | MixedInkGroup | NotePreference | NumberingList | ObjectStyle | ObjectStyleGroup | PDFExportPreference | PDFExportPreset | PDFPlacePreference | PageItemDefault | PagesPanel | Panel | ParagraphStyle | ParagraphStyleGroup | PasteboardPreference | PolygonPreference | PrinterPreset | RingStyle | SVGExportPreference | ScriptArg | ScriptMenuAction | ScriptPreference | SpellPreference | StoryExportPreference | StoryPreference | StoryWindow | StripedStrokeStyle | StrokeStyle | Swatch | TableStyle | TableStyleGroup | TaggedTextExportPreference | TaggedTextImportPreference | TextDefault | TextEditingPreference | TextExportPreference | TextFramePreference | TextImportPreference | TextPreference | TextVariable | TextWrapPreference | Tint | TransformPreference | TransformationMatrix | TransparencyPreference | TrapPreset | UserDictionary | ViewPreference | Window | WordRTFImportPreference | XMLExportMap | XMLExportPreference | XMLImportMap | XMLImportPreference | XMLPreference | XMLRuleProcessor | XMLTag | XMLViewPreference

Properties

PropertyTypeAccessDescription
activeBookBook r/wThe active book.
activeDocumentDocument r/wThe front-most document.
activeScriptFile readonlyThe current script running from the Scripts panel.
activeWindowLayoutWindowStoryWindow
Window
r/wThe front-most window. Can return: Window, LayoutWindow or StoryWindow.
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).
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.
characterStyleGroupsCharacterStyleGroups readonlyA collection of character style groups.
characterStylesCharacterStyles readonlyA collection of character styles.
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.
dashedStrokeStylesDashedStrokeStyles readonlyA collection of dashed stroke styles.
dataMergeOptionsDataMergeOption readonlyThe data merge option properties that define the data merge.
dialogsDialogs readonlyA collection of dialogs.
dictionaryPreferencesDictionaryPreference readonlyUser dictionary preference settings.
displayPerformancePreferencesDisplayPerformancePreference readonlyDisplay performance settings.
displaySettingsDisplaySettings readonlyDisplay setting properties.
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.
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.
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.
flattenerPresetsFlattenerPresets readonlyA collection of transparency flattener presets.
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.
galleyPreferencesGalleyPreference readonlyGalley preference settings.
generalPreferencesGeneralPreference readonlyGeneral preference settings.
grabberPreferencesGrabberPreference readonlyGrabber preference properties that define display performance quality during scrolling.
gradientsGradients readonlyA collection of gradients.
gridPreferencesGridPreference readonlyGrid preference settings.
guidePreferencesGuidePreference readonlyGuide preference settings.
imageIOPreferencesImageIOPreference readonlyThe image I/O preference properties that define preferences for importing images.
imagePreferencesImagePreference readonlyImage preferences.
imePreferencesIMEPreference readonlyIME preference settings.
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.
jpegExportPreferencesJPEGExportPreference readonlyJPEG export preferences.
labelstring r/wA property that can be set to any string.
languagesWithVendorsLanguagesWithVendors readonlyA collection of languages with vendors.
layoutAdjustmentPreferencesLayoutAdjustmentPreference readonlyLayout sdjustment preference settings.
layoutWindowsLayoutWindows readonlyA collection of layout windows.
librariesLibraries readonlyA collection of object libraries.
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
readonlyThe locale of the application.
marginPreferencesMarginPreference readonlyMargin preference settings.
menuActionsMenuActions readonlyA collection of menu actions.
menusMenus readonlyA collection of menus.
mixedInkGroupsMixedInkGroups readonlyA collection of mixed ink groups.
mixedInksMixedInks readonlyA collection of mixed inks.
modalStatebool readonlyIf true, a modal dialog or alert is active.
namestring readonlyThe name of the Application.
notePreferencesNotePreference readonlyNote preference settings.
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.
panelsPanels readonlyA collection of panels.
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.
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.
printerPresetsPrinterPresets readonlyA collection of printer presets.
propertiesObject r/wA property that allows setting of several properties at the same time.
redoHistory Array of string readonlyThe names of the items in the redo stack.
redoNamestring readonlyThe name of the action on the top of the redo stack.
ringStylesRingStyles readonlyRing styles
scriptArgsScriptArg readonlyArguments to pass to a script.
scriptMenuActionsScriptMenuActions readonlyA collection of script menu actions.
scriptPreferencesScriptPreference readonlyScript preferences.
selection Array of Object r/wThe selected object(s). Can also accept: Object or NothingEnum enumerator.
spellPreferencesSpellPreference readonlySpell-check preferences.
storyExportPreferencesStoryExportPreference readonlyStory export preference settings.
storyPreferencesStoryPreference readonlyStory preference settings.
storyWindowsStoryWindows readonlyA collection of story windows.
stripedStrokeStylesStripedStrokeStyles readonlyA collection of striped stroke styles.
strokeStylesStrokeStyles readonlyA collection of stroke styles.
svgExportPreferencesSVGExportPreference readonlySVG export preferences.
swatchesSwatches readonlyA collection of swatches.
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.
textEditingPreferencesTextEditingPreference readonlyText editing preference settings.
textExportPreferencesTextExportPreference readonlyText export preferences.
textFramePreferencesTextFramePreference readonlyText frame preference settings.
textImportPreferencesTextImportPreference readonlyText import preferences.
textPreferencesTextPreference readonlyText preference settings.
textVariablesTextVariables readonlyA collection of text variables.
tintsTints readonlyA collection of tints.
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.
undoHistory Array of string readonlyThe names of the items in the undo stack.
undoNamestring readonlyThe name of the action on the top of the undo stack.
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.
visiblebool readonlyIf true, the Application is visible.
windowsWindows readonlyA collection of windows.
wordRTFImportPreferencesWordRTFImportPreference readonlyWord and RTF import 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.
xmlViewPreferencesXMLViewPreference readonlyXML view preference settings.

Methods

Instances

void activate ()
Makes the application the front-most or active window.

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

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolIf true, the handler is called only in the capturing phase of event propagation. If false, the handler is called in the bubbling phase if the event is an ancestor of the target, or in the at-target phase if the parent of the event listener is itself the target of the event. (Optional) (default: false)

void applyMenuCustomization ([name: string])
Applies the specified menu customization set. An empty string will reset all menus and colorization (Show Full Menus). No string will apply the default menu set.

ParameterTypeDescription
namestringThe menu customization set. (Optional)

void applyWorkspace ([name: string])
Applies the specified workspace.

ParameterTypeDescription
namestringThe workspace. (Optional)

void cascadeWindows ()
Cascades all document windows.

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)

void copy ()
Copies the selection in the active document window to the clipboard.

void cut ()
Cuts the selection in the active document window and stores it in the clipboard.

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
The search mode.

void deleteUnusedTags ()
Deletes unused XML markup tags.

any doScript (script: any[, language: ScriptLanguage=ScriptLanguage.UNKNOWN][, withArguments: Array of any])
Executes the script in the specified language.

ParameterTypeDescription
scriptFile
String
The script to execute. Can accept: File or String.
languageScriptLanguage:
ScriptLanguage.UNKNOWN
ScriptLanguage.VISUAL_BASIC
ScriptLanguage.JAVASCRIPT
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 to pass to the script. (Optional)

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 Application getElements ()
Resolves the object specifier, creating an array of object references.

Array of string getTextShapingPresetsList ()
Get the text shaping presets list

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.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 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
The search mode.

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.

any open (from: any[, showingWindow: bool=true])
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.
showingWindowboolIf true, opens the document in a window. If false, the document is opened but is not displayed in a window. (Optional) (default: true)

void paste ()
Pastes data from the clipboard into the active document window.

void pasteInPlace ()
Pastes data from the clipboard into the active document window at the same position that the data held in its original document.

void pasteInto ()
Pastes data from the clipboard into the selected object in the active document window.

void pasteWithoutFormatting ()
Pastes data (minus formatting) from the clipboard into the active document window.

void place (fileName: any[, showingOptions: bool=false][, withProperties: Object])
Places the file.

ParameterTypeDescription
fileName Array of Files
File
One or more files to place. Can accept: File or Array of Files.
showingOptionsboolWhether to display the import options dialog (Optional) (default: false)
withPropertiesObjectInitial values for properties of the placed object(s) (Optional)

void print (from: any[, printDialog: bool][, using: any])
Prints the specified file(s).

ParameterTypeDescription
from Array of Files
File
One or more file paths. Can accept: File or Array of Files.
printDialogboolWhether to invoke the print dialog (Optional)
usingPrinterPreset
PrinterPresetTypes
Printer preset to use. Can accept: PrinterPresetTypes enumerator or PrinterPreset. (Optional)

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

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

void redo ()
Redoes the last action.

bool removeEventListener (eventType: string, handler: any[, 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.
capturesboolIf true, the handler responds only in the capture phase. (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
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 select (selectableItems: any[, existingSelection: SelectionOptions=SelectionOptions.REPLACE_WITH])
Selects the specified object(s).

ParameterTypeDescription
selectableItems Array of Objects
NothingEnum
Object
SelectAll
The objects to select. Can accept: Object, Array of Objects, NothingEnum enumerator or SelectAll enumerator.
existingSelectionSelectionOptions:
SelectionOptions.ADD_TO
SelectionOptions.REMOVE_FROM
SelectionOptions.REPLACE_WITH
The selection status of the Application in relation to previously selected objects. (Optional) (default: SelectionOptions.REPLACE_WITH)

Array of string tasmeemGetACEFontsList ()
Get the ACE Fonts list

Array of number tasmeemGetNextVariations (sessionID: number)
get next variations set

ParameterTypeDescription
sessionIDnumberSession ID

Array of number tasmeemGetSegments (fontName: string, tasmeemString: string[, tasmeemIndex: number])
Get the segments of the text

ParameterTypeDescription
fontNamestringfont name
tasmeemStringstringString to analyse
tasmeemIndexnumberindex of the segment (Optional)

number tasmeemInitializeWordShaper (fontName: string, tasmeemString: string, variantsMask: number, numberOfKashidas: number)
Initialize the word shaping session

ParameterTypeDescription
fontNamestringfont name
tasmeemStringstringString to analyse
variantsMasknumbervariants generation mask
numberOfKashidasnumbernumber of kashidas

void tileWindows ([orientation: HorizontalOrVertical=HorizontalOrVertical.VERTICAL])
Tile all document windows

ParameterTypeDescription
orientationHorizontalOrVertical:
HorizontalOrVertical.HORIZONTAL
HorizontalOrVertical.VERTICAL
The preferred window tiling orientation. (Optional) (default: HorizontalOrVertical.VERTICAL)

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 undo ()
Undoes the last action.

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

CharacterStyle.parent

CharacterStyleGroup.parent

ClipboardPreference.parent

Color.parent

ColorSetting.parent

DashedStrokeStyle.parent

DataMergeOption.parent

Dialog.parent

DictionaryPreference.parent

DisplayPerformancePreference.parent

DisplaySetting.parent

Document.parent

DocumentEvent.parent

DocumentPreference.parent

DocumentPreset.parent

DottedStrokeStyle.parent

EPSExportPreference.parent

EPSImportPreference.parent

ExcelImportPreference.parent

ExportForWebPreference.parent

FindChangeGlyphOption.parent

FindChangeGrepOption.parent

FindChangeObjectOption.parent

FindChangeTextOption.parent

FindGlyphPreference.parent

FindGrepPreference.parent

FindObjectPreference.parent

FindTextPreference.parent

FlattenerPreset.parent

Font.parent

FootnoteOption.parent

FrameFittingOption.parent

GalleyPreference.parent

GeneralPreference.parent

GrabberPreference.parent

Gradient.parent

GridPreference.parent

GuidePreference.parent

IMEPreference.parent

ImageIOPreference.parent

ImagePreference.parent

ImportExportEvent.parent

ImportedPageAttribute.parent

IndexOptions.parent

IndexingSortOption.parent

Ink.parent

JPEGExportPreference.parent

LanguageWithVendors.parent

LayoutAdjustmentPreference.parent

LayoutWindow.parent

Library.parent

LibraryPanel.parent

Menu.parent

MenuAction.parent

MixedInk.parent

MixedInkGroup.parent

NotePreference.parent

NumberingList.parent

ObjectStyle.parent

ObjectStyleGroup.parent

PDFExportPreference.parent

PDFExportPreset.parent

PDFPlacePreference.parent

PageItemDefault.parent

PagesPanel.parent

Panel.parent

ParagraphStyle.parent

ParagraphStyleGroup.parent

PasteboardPreference.parent

PolygonPreference.parent

PrinterPreset.parent

RingStyle.parent

SVGExportPreference.parent

ScriptArg.parent

ScriptMenuAction.parent

ScriptPreference.parent

SpellPreference.parent

StoryExportPreference.parent

StoryWindow.parent

StripedStrokeStyle.parent

StrokeStyle.parent

Swatch.parent

TableStyle.parent

TableStyleGroup.parent

TaggedTextExportPreference.parent

TaggedTextImportPreference.parent

TextDefault.parent

TextEditingPreference.parent

TextExportPreference.parent

TextImportPreference.parent

TextPreference.parent

TextVariable.parent

Tint.parent

TransformPreference.parent

TransformationMatrix.parent

TransparencyPreference.parent

TrapPreset.parent

UserDictionary.parent

ViewPreference.parent

Window.parent

WordRTFImportPreference.parent

XMLExportMap.parent

XMLExportPreference.parent

XMLImportMap.parent

XMLImportPreference.parent

XMLPreference.parent

XMLRuleProcessor.parent

XMLTag.parent

XMLViewPreference.parent

Used in:

CellStyle CellStyle.move (to: LocationOptions[, reference: any])

CellStyleGroup CellStyleGroup.move (to: LocationOptions[, reference: any])

CharacterStyle CharacterStyle.move (to: LocationOptions[, reference: any])

CharacterStyleGroup CharacterStyleGroup.move (to: LocationOptions[, reference: any])

ObjectStyle ObjectStyle.move (to: LocationOptions[, reference: any])

ObjectStyleGroup ObjectStyleGroup.move (to: LocationOptions[, reference: any])

ParagraphStyle ParagraphStyle.move (to: LocationOptions[, reference: any])

ParagraphStyleGroup ParagraphStyleGroup.move (to: LocationOptions[, reference: any])

TableStyle TableStyle.move (to: LocationOptions[, reference: any])

TableStyleGroup TableStyleGroup.move (to: LocationOptions[, reference: any])

Return

Array of Application Application.getElements ()

Jongware, 27-Jun-2010 v3.0.3dContents :: Index