Targeting nested para styles in FindChangeByList Script
- This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Targeting nested para styles in FindChangeByList Script
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Targeting nested para styles in FindChangeByList Script
Tagged: FindChangeByList, GREP, InDesign, javascript, script
I’m struggling with this one…
I’m using the FindChangeByList script, and can’t work out how to target a paragraph style that sits within a folder. The following works fine if the style is in the top level in the styles palette:
{appliedParagraphStyle:”Standard”}
I tried the following with the style in a folder, but to no avail:
{appliedParagraphStyle:”Article/H1″}
{appliedParagraphStyle:”Article>H1″}
{appliedParagraphStyle:”Article > H1″}
Does anyone know a way around this?
This is a very late reply, but I’m hoping it will help others who search for this topic. This post helped me tremendously:
https://forums.adobe.com/message/2413315
Basically, you alter the syntax like so:
appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item(“Style Group 1”). paragraphStyles.item(“Endnotes Head”)
I tested this personally and it works beautifully.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!