2 Replies Latest reply on Jun 22, 2017 6:46 AM by Liphou

    Query/change works in Find/Change but does not work in FindChangeByList


      This, including Change All, works perfectly in Find/Change (finds extra/empty carriage returns at end of story and removes them; puts end of story #at end of text in that story)


           Find what: \s+\Z

           Change to: (nothing)

           Search: Document

           Find Format: my custom paragraph style


      But when I translate this to use in the FindChangeByList script... nothing happens. Here's that code from the txt file:

      grep     {findWhat:"\s+\Z", appliedParagraphStyle:"myStyle"}     {changeTo:""}     {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}


      I see people singing the praises of this FindChangeByList script everywhere, but when I try to use it in a custom way it's not so praiseworthy... what's its worth, if it doesn't take more complicated, customized greps?