OK, starting at the lowest level is getting the column selected, since we need to select the correct column
before selecting the first cell in the column to rename (a separate funciton?) and then the remaining cells
in the column (another function)? Once these two functions are done, the rest would be like the example in the
the Frame book, since then you would have a function select only the tables that have a certain name and then
all the files in the book.
#target framemaker
// !! first, click on table
var doc=app.ActiveDoc;
//Get the table containing the insertion point
var tbl=doc.SelectedTbl;
//Get the first cell in the first row
var cell=tbl.FirstRowInTbl.FirstCellInRow;
var colNum=3;
for (var i=1; i<colNum; i+=1){
cell=cell.NextCellInRow;
}
while (cell.ObjectValid()){
var pgf=cell.FirstPgf;
alert (pgf.Name);
alert(cell);
cell=cell.CellBelowInCol;// Move down to next cell
}