Change

A tracked change made to a story.

Methods:

accept, getElements, reject, toSource, toSpecifier

Objects:

Boolean, ChangeTypes, Characters, Date, InsertionPoint, InsertionPoints, Lines, Number, Object, Paragraphs, String, TextColumns, TextStyleRanges, TextVariableInstances, Texts, Words

Property Listing

Property

Type

Access

Description

changeType

ChangeTypes

ChangeTypes.DELETED_TEXT

ChangeTypes.INSERTED_TEXT

ChangeTypes.MOVED_TEXT

readonly

The type of tracked change. Note: Valid only when track changes is true.

characters

Characters Character

readonly

A collection of characters.

date

Date

readonly

The date on which the tracked change was made. Note: Valid only when track changes is true.

index

Number

readonly

The index of the Change within its containing object.

insertionPoints

InsertionPoints InsertionPoint

readonly

A collection of insertion points.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

lines

Lines Line

readonly

A collection of lines.

paragraphs

Paragraphs Paragraph

readonly

A collection of paragraphs.

parent

Cell

Story

readonly

The parent of the Change (a Story or Cell).

properties

Object

read/write

A property that allows setting of several properties at the same time.

storyOffset

InsertionPoint

readonly

The location of the first insertion point in the object (relative to the beginning of the story).

textColumns

TextColumns TextColumn

readonly

A collection of text columns.

textStyleRanges

TextStyleRanges TextStyleRange

readonly

A collection of text style ranges.

textVariableInstances

TextVariableInstances TextVariableInstance

readonly

A collection of text variable instances.

texts

Texts Text

readonly

A collection of text objects.

userName

String

readonly

The user who made the change. Note: Valid only when track changes is true.

words

Words Word

readonly

A collection of words.

Method Listing

undefined accept ()

Accepts the tracked change. Note: Valid only when track changes is true.

Change getElements ()

Resolves the object specifier, creating an array of object references.

undefined reject ()

Rejects the tracked change. Note: Valid only when track changes is true.

String toSource ()

Generates a string which, if executed, will return the Change.

String toSpecifier ()

Retrieves the object specifier.

Object of

Character.parent

InsertionPoint.parent

Line.parent

Paragraph.parent

Text.parent

TextColumn.parent

TextStyleRange.parent

TextVariableInstance.parent

Word.parent

Return

Change.getElements()

Changes.anyItem()

Changes.everyItem()

Changes.nextItem()

Changes.previousItem()

Changes.item()

Changes.[]()

Changes.itemByName()

Changes.itemByRange()

Changes.firstItem()

Changes.lastItem()

Changes.middleItem()