Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get all paragaphs in a document [CS3 JS]

Community Expert ,
Dec 12, 2008 Dec 12, 2008
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
TOPICS
Scripting
310
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 12, 2008 Dec 12, 2008
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 ...

robin

--
www.adobescripts.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 12, 2008 Dec 12, 2008
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.

Dave
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2008 Dec 13, 2008
LATEST
Hi Dave,

The GREP solution worked well. I didn't need paragraphs with tables in them anyway. Thank you very much for the help.

Rick
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines