/t5/indesign-discussions/get-all-paragaphs-in-a-document-cs3-js/td-p/1117390Dec 12, 2008
Dec 12, 2008
Copy link to clipboard
Copied
Hello all,
I want to get all paragraphs in a document, including those in table cells. I am looping through the document's stories, and the paragraphs in each story, but it doesn't seem to get those in table cells. Thank you very much for any help.
Rick Quatro
rick at frameexpert dot com
585-659-8267
/t5/indesign-discussions/get-all-paragaphs-in-a-document-cs3-js/m-p/1117391#M271802Dec 12, 2008
Dec 12, 2008
Copy link to clipboard
Copied
you need to iterate all cells in all tables ...
or maybe you can get all Texts from all Cells from single table with ItemByRange - but I'm not JS man and sorry, but I don't remember full example 😞 I think this example was posted on this forum ... or maybe this was only example how to set text properties of range of cells at once ...
/t5/indesign-discussions/get-all-paragaphs-in-a-document-cs3-js/m-p/1117392#M271803Dec 12, 2008
Dec 12, 2008
Copy link to clipboard
Copied
How about a GREP search for .+
That should get you a reference to every paragraph (although I notice that it doesn't find paragraphs that have only a table in them) including those in table cells.