Modifying FindChangeByList script
Hello,
I wrote a post just yesterday but it seems to have been deleted (at least I can't find it after much poking around), so I apologize if it does actually still exist somewhere and the following is redundant.
That aside: I am interested in modifying the FindChangeByList script to prevent it from affecting elements (specifically, paragraph styles) that are necessary to my publication's typography layout. Admittedly, I have no real background in scripting, with only a basic tutorial under my belt, which is why I am seeking the help of this community.
Currently, the FindChangeByList works well to remove typographical/formatting errors from my publication's documents, but it inevitably also introduces new errors because it removes spacing necessary for parts of our layout. Ideally, I'd like to use this script as part of our final proofing efforts, but having the script introduce new errors would of course defeat this purpose.
Here are what I believe to be the main FindChangeByList actions that impact our layout:
1. Find all returns followed by a space and replace with single returns.
This removes the single space necessary to properly format our Drop Caps, for which we use an in-house paragraph style.
2. Find all double returns and replace with single returns.
This removes the double returns we use to indicate a section break in a flow of text; each section break is almost always followed by a Drop Cap paragraph style.
This also removes the double returns we use before and after block quotes, which are formatted per an in-house paragraph style.
I assume the best way to address this problem is to somehow put in exceptions in the script for these elements of the text I wish to remain unaffected, but if anyone has any other approaches I'd love to hear them.
Thank you for your time, scripting whizzes, and I appreciate any advice anyone is willing to give me on addressing this!