Adobe Community Professional, Mar 11, 2021Mar 11, 2021
brianp311 • Adobe Community Professional, Mar 11, 2021Mar 11, 2021
If you look at the DOM API, you will see that convertToTable returns a Table object. That is what is indicated by Table before function name in the API description here: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Text.html#d1e458928__d1e465561
As such, you can assign it a variable, or you can even select it.
var myTable = app.selection.convertToTable("\t","\t",1);
var myFirstRow = myTable.rows;
You'll find after you script long enough that sel...
Going forward, am I right to assume that, since the "columnSeparator" and "rowSeparator" are "string" I could use something different than "\t" for identifying the rows ?
Tabulations are pretty common and could interfere in the process of the table creation. Since I'm dealing with texts from MSWord documents, automatically generated by Smartcat (online translation interface) a tabulation may be sneaking somethere, from time to time.