2 Replies Latest reply on Jul 16, 2014 8:03 AM by Team Steam

    Use FindChangeByList with style groups inside style groups

    Team Steam Level 1

      Hello All!

       

      I've been setting up a FindChangeByList query file with a couple dozen grep searches. It works well, but I'd like to rearrange the paragraph styles in my template using style groups within style groups.

       

      The reason for this is that we won't be actively applying most these automatically applied styles later in our workflow. I'll be handing the file over to some other people who are a little slow navigating Indesign. If I can bury everything but the vital styles, it would be easier and faster for my co-workers to find the styles they need to finish up their work.

       

      So my question is this: How do I reference style groups within style groups in a FindChangeByList query?

       

      Here's an example what I'm using for a style in a style group:

      appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Introduction").paragraphStyles.item("y - Intro Title - Preface, Foreword")
      

       

      Which works when I insert it into my query:

      grep {findWhat:"^Introducción al curso(?=\\r)"} {changeTo:"Introducción", appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Introduction").paragraphStyles.item("y - Intro Title - Preface, Foreword")} {} //Introduccion change and apply style
      

       

      What would I do if I put that style group inside a new style group named "Technical"?

      Like this:

      Screen Shot 2014-07-15 at 11.32.38 AM.png

      Thanks for your help!

      Amy