Table Suite
520
Command: get cell from table
Returns a cell object that represents a cell in a table.
Syntax
get cell from table table Required. An expression that returns a cell object.
row integer Required. The number of the row in the table to return. Can be an integer between 1
and the number of rows in the table.
column integer Required. The number of the cell in the table to return. Can be an integer
between 1 and the number of columns in the table.
Example
This example creates a 3x3 table in a new document and inserts text into the first and last cells in the
table.
set newDoc to make new document
set myTable to make new table at the end of newDoc with properties ¬
{number of columns:3, number of rows:3}
set r1c1 to get cell from table myTable row 1 column 1
set r3c3 to get cell from table myTable row 3 column 3
set content of text object of r1c1 to "First cell"
set content of text object of r3c3 to "Last cell"
Command: merge cell
Merges the specified table cell with another cell. The result is a single table cell.
Syntax
merge cell cell Required. An expression that returns a cell object.
with cell Required. An expression that returns a cell object.
Example
This example merges the first two cells in table 1 in the active document and then removes the table
borders.
set tableCount to count tables in the active document
set myTable to table 1 of active document
if tableCount 1 then
merge cell (cell 1 of row 1 of myTable) with (cell 2 of row 1 of myTable)
set enable borders of border options of myTable to False
end If