Table Suite
517
Command: convert row to text
Converts a row to text and returns a text range object that represents the delimited text.
Syntax
convert to text row/row options Required. An expression that returns a row or row options
object.
[separator enumeration] Optional. The character that delimits the converted columns
(paragraph marks delimit the converted rows). Can be one of the following: separate by
commas, separate by default list separator, separate by paragraphs, or separate by tabs. The
default value is separate by tabs.
[nested tables Boolean] Optional. True if nested tables are converted to text. This argument is
ignored if separator is not separate by paragraphs. The default value is true.
Example
In the following example, the first row in the active document is converted to text and then
formatted as Heading 1.
set myTable to table 1 of the active document
set aRange to convert row to text (row 1 of myTable) ¬
separator separate by paragraphs
set style of aRange to style heading1
Command: convert to text
Converts a table to text and returns a text range object that represents the delimited text.
Syntax
convert to text table Required. An expression that returns a table object.
[separator enumeration] Optional. The character that delimits the converted columns
(paragraph marks delimit the converted rows). Can be one of the following: separate by
commas, separate by default list separator, separate by paragraphs, or separate by tabs. The
default value is separate by tabs.
[nested tables Boolean] Optional. True if nested tables are converted to text. This argument is
ignored if separator is not separate by paragraphs. The default value is true.
When you apply the convert to text command to a table object, the object is deleted. To maintain a
reference to the converted contents of the table, you must assign the text range object returned by
the convert to text command to a new object variable.
Example
In the following example, the first table in the active document is converted to text and then
formatted as a bulleted list.
set myTable to table 1 of active document
set aRange to convert to text myTable separator separate by paragraphs
apply list format template (list format of aRange) list template ¬
(list template 2 of (get list gallery bullet gallery))