I want to add 3 linebreaks after every table in my document. Then i want to convert the tables to text (sorry, but it makes sense for some export reasons ;-)).
Step 2 i got with: "app.activeDocument.stories.everyItem().tables.everyItem().convertToText("\t", "\r");"
But i can't find out how i place a text-insert with '\r\r\r' after every table (before step 2).
many thanks for your help
An approach is to loop through insertion points using the storyOffset property of the tables:
// Get the array of tables' insertionPoints // --- var ips = app.activeDocument.stories.everyItem().tables.everyItem().storyOffset, i = ips.length; while( i-- ) with( ips[i].insertionPoints.nextItem(ips[i]) ) isValid && contents = '\r\r\r';
Thank you Marc!
this works perfectly!