Microsoft Word Suite
This example inserts two new rows above the row that contains the selection, and then it removes
the borders from the new rows.
if (get selection information selection information type with in table) ¬
insert rows selection position above number of rows 2
set enable borders of border options of selection to false
Command: insert symbol
Inserts a symbol in place of the specified range or selection.
Note If you dont want to replace the text range or selection, use the collapse range command
before you use this command.
at text range Required. An expression that returns a text range object.
character number integer Required. The character number for the specified symbol. This value
will always be the sum of 31and the number that corresponds to the position of the symbol in
the table of symbols (counting from left to right). For example, to specify a delta character at
position 37 in the table of symbols in the Symbol font, set character number to 68.
[font Unicode text] Optional. The name of the font that contains the symbol.
[unicode Boolean] Optional. True to insert the Unicode character specified by character
number; false to insert the ANSI character specified by character number. The default value is
[bias enumeration] Optional. Sets the font bias for symbols. This argument is useful for setting
the correct font bias for characters in East Asian versions of Word. Can be one of the following:
font bias default, font bias do not care, or font bias east asian.
This example inserts a double-headed arrow at the insertion point.
collapse range text object of selection direction collapse start
insert symbol at text object of selection character number 171 font "Symbol" ¬
This example inserts a bullet and a tab stop at the beginning of the first paragraph in the selection.
set myRange to text object of paragraph 1 of selection
set myRange to collapse range myRange direction collapse start
insert symbol at myRange character number 183 font "Symbol" without unicode
set myRange to move start of range myRange by a character item count 1
insert text tab at myRange