Microsoft Word Suite
249
Command: enable
Formats the first character in the specified paragraph as a dropped capital letter.
Syntax
enable drop cap Required. An expression that returns a drop cap object.
Example
This example formats the first paragraph in the selection to begin with a dropped capital letter.
enable drop cap of paragraph 1 of selection
set lines to drop of drop cap of paragraph 1 of selection to 2
set font name of drop cap of paragraph 1 of selection to "Arial"
Command: end key
Moves or extends the selection to the end of the specified unit. This command returns a text range
that represents the new text range of the selection, or returns a missing value if the move was
unsuccessful.
Note This command corresponds to the functionality of the END key.
Syntax
end key selection object Required. An expression that returns a selection object.
[move enumeration] Optional. The unit by which the selection is to be moved or extended. Can
be one of the following: unit a story, unit a column, unit a line, unit a screen, unit a section,
or unit a row. The default value is unit a line.
[extend enumeration] Optional. Specifies the way the selection is moved. Can be one of the
following: by moving or by selecting. If the value of this argument is by moving, the selection
is collapsed to an insertion point and moved to the end of the specified unit. If the value of this
argument is by selecting, the end of the selection is extended to the end of the specified unit.
The default value is by moving.
Example
This example moves the selection to the end of the current line and assigns the new text range to the
pos
variable.
set pos to end key selection move unit a line extend by moving
This example moves the selection to the beginning of the current table column and then extends the
selection to the end of the column.
if (get selection information selection information type with in table) ¬
is
"True"
then
home key selection move unit a column extend by moving
end key selection move unit a column extend by selecting
end if
This example moves the selection to the end of the current story. If the selection is in the main text
story, the example moves the selection to the end of the document.
end key selection move unit a story extend by moving