Table Suite
514
Commands
auto fit..........................................................................................................................................................................514
auto fit behavior .........................................................................................................................................................515
auto format table ........................................................................................................................................................515
auto sum ......................................................................................................................................................................516
convert row to text .....................................................................................................................................................517
convert to text .............................................................................................................................................................517
distribute row height .................................................................................................................................................518
distribute width ..........................................................................................................................................................518
formula ........................................................................................................................................................................518
get border ....................................................................................................................................................................519
get cell from table .......................................................................................................................................................520
merge cell ....................................................................................................................................................................520
set left indent...............................................................................................................................................................521
set table item height ...................................................................................................................................................521
set table item width....................................................................................................................................................522
sort ascending .............................................................................................................................................................523
sort descending...........................................................................................................................................................523
split cell........................................................................................................................................................................524
split table .....................................................................................................................................................................524
table sort ......................................................................................................................................................................524
update auto format.....................................................................................................................................................526
Command: auto fit
Changes the width of a table column to accommodate the width of the text without changing the
way text wraps in the cells.
Syntax
auto fit column/column options Required. An expression that returns a column or column
options object.
If the table is already as wide as the distance between the left and right margins, this command has
no effect.
Example
This example creates a 3x3 table in a new document and then changes the width of the first column
to accommodate the width of the text.
set newDoc to make new document
set myTable to make new table at the beginning of newDoc with properties ¬
{number of rows:3, number of columns:3}
set content of text object of cell 1 of row 1 of myTable to "First cell"
auto fit column 1 of myTable