Adobe InDesign CS3 (5.0) Object Model JS: UserDictionary

InDesign CS3

Class

UserDictionary

 A user dictionary.

QuickLinks

addWord, getElements, removeWord, toSource, toSpecifier

Hierarchy

Application
UserDictionary

Properties

PropertyTypeAccessDescription
addedWords Array of string r/wA list of words added to the user dictionary.
indexnumber readonlyThe index of the UserDictionary within its containing object.
namestring readonlyThe name of the UserDictionary.
parentApplication readonlyThe parent of the UserDictionary (a Application).
propertiesObject r/wA property that allows setting of several properties at the same time.
removedWords Array of string r/wA list of words removed from the user dictionary.

Methods

Instances

void addWord (addedWords: Array of string[, removedList: bool=false])
Adds the specified words to the specified list in the dictionary.

ParameterTypeDescription
addedWords Array of stringThe words to add.
removedListboolIf true, adds the words to the removed words list. If false or unspecified, adds the words to the added words list. (Optional) (default: false)

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

void removeWord (removedWords: Array of string[, removedList: bool=false])
Removes the specified words from the specified list in the dictionary.

ParameterTypeDescription
removedWords Array of stringThe words to remove.
removedListboolIf true, removes the words from the removed words list. If false or unspecified, removes the words from the added words list. (Optional) (default: false)

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

string toSpecifier ()
Retrieves the object specifier.

Used in:

array of UserDictionary UserDictionaries.itemByRange (from: any, to: any)

UserDictionary UserDictionaries.nextItem (obj: UserDictionary)

UserDictionary UserDictionaries.previousItem (obj: UserDictionary)

Return

UserDictionary UserDictionaries.anyItem ()

Array of UserDictionary UserDictionaries.everyItem ()

UserDictionary UserDictionaries.firstItem ()

UserDictionary UserDictionaries.item (index: any)

UserDictionary UserDictionaries.itemByName (name: string)

Array of UserDictionary UserDictionaries.itemByRange (from: any, to: any)

UserDictionary UserDictionaries.lastItem ()

UserDictionary UserDictionaries.middleItem ()

UserDictionary UserDictionaries.nextItem (obj: UserDictionary)

UserDictionary UserDictionaries.previousItem (obj: UserDictionary)

Array of UserDictionary UserDictionary.getElements ()

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