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

App.document has no. pages, how can I count the particular parastyle in every page separately?

New Here ,
Jun 07, 2010 Jun 07, 2010

Hi Guys,

Adobe InDesign document has n no.of pages with different parastyles. So, I would like to count particular parastyle in each and every page separately using JavaScriptExteded. Please help me.

like;

    <ParaStyle:Title> is

    page 1: count - 3

    page 2: count - 4

    page 3: count - 2

     ...

Thanks and Regards

Sen

TOPICS
Scripting
403
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
Enthusiast ,
Jun 08, 2010 Jun 08, 2010

This will give you applied paragraph styles for textframes on a certain page n:

app.activeDocument.pages.textFrames.everyItem().paragraphs.everyItem().appliedParagraphStyle

But grouped objects will not be included....

You might be better off by looking up the paragraphs and associated styled from app.activeDocument.stories.everyItem().textContainers, and then looking at which page each paragraph of those text frames belongs to.

Both of these hints won't find texts in table cells. Just pointing you in some kind of direction... You will find lots of advise in other threads on the forum. For example: http://forums.adobe.com/message/2717858#2717858

Andreas

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
Enthusiast ,
Jun 09, 2010 Jun 09, 2010
LATEST

This might be an even better starting point:

app.activeDocument.stories.everyItem().paragraphs.everyItem().appliedParagraphStyle

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