I am working on a project where I have a indd file containing tables which are mostly inconsistent in formatting.
The workflow I have developed so far goes something like this:
[Manual work]
I select the source table, convert it to text, select the resulting text, followed by Find/Replace to remove extra returns and white space, then I copy the selected text to clipboard.
Then I switch to another indd file where I paste the text, select the text again, convert it to table with proper table style. Select the resulting table. (The purpose of converting the table to text is to remove all the inconsistent formatting from the table.)
[Script]
With the help of good folks here at InDesign Scripting forum, I have developed a small script that sets the column width and row height of the table and applies a paragraph style to text of first cell of the table.
[Manual work]
Then I place my cursor after the table and manually enter the row count of the table and apply a specific paragraph style to the count.
Is there any chance that I can automate the [Manual work] part.
Namely:Eliminate multiple selection of same text/table.
Insert the count of table rows after table.
Thanks and regards.