Targeting nested para styles in FindChangeByList Script

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Targeting nested para styles in FindChangeByList Script

Viewing 1 reply thread
  • Author
    Posts
    • #64664
      Simon Duckworth
      Participant

      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?

    • #69660
      Jennifer Flores
      Participant

      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.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
>