Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
This will give you applied paragraph styles for textframes on a certain page n:
app.activeDocument.pages
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
Copy link to clipboard
Copied
This might be an even better starting point:
app.activeDocument.stories.everyItem().paragraphs.everyItem().appliedParagraphStyle
Find more inspiration, events, and resources on the new Adobe Community
Explore Now