InDesign Javascript convert text to table
Hello,
I have a document where I have blocks of text that are supposed to become tables.
I have tabs (\t) to separate between colums and newline (\r) to separate between rows.
For the moment, I to to go through the document manually, select the text blocks and convert them to tables.
All the lines of text that are supposed to become tables have the paragraph tag "Body-for-Table".
In between there are other parts of text, such as headings, sub-headnings and so on.
The number of lines in each block of "Body-for-Table" can vary from one to 20 or so.
Is it possible to make a javascript that goes through the document and converts each text block "Body-for-Table" to a table? My Table Style is called "Table-pratiqué-etc".
Best regards from
Geir
