Article View: adobe.scripting.indesign
Article #1274FindChangeByList Sample Error
From: Dave_Saunders
Date: Fri, 13 Feb 2009 17:17
Date: Fri, 13 Feb 2009 17:17
15 lines
1856 bytes
1856 bytes
There are some errors in the third and sixth sample greps included in the FindChangeByList.txt file that came bundled with CS4 (and also CS3, so perhaps these aren't very important errors). In both cases, the descriptions are wrong, each having been copied from the previous entry but not edited properly. But more importantly:
Apply either of these and the paragraph after the return will take on the paragraph style of the paragraph before the return.
To fix the problems change them to:
grep {findWhat:" $"} {changeTo:""} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all instances of a space at the end of a paragraph and delete it.
grep {findWhat:"\t$"} {changeTo:""} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all instances of a tab character at the end of a paragraph and delete it.
However, what prompts me to actually post this is that I am mystified why the two similar entries that immediately precede these two don't have the same problem. In the UI, if you select a return and the space or tab that immediately follows it and hit return, you do get the problem of the styles changing. But it doesn't happen with these greps.
Puzzled in New Jersey.
Dave
Technical Details
Message-ID:
<59b7e7fd.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,fafc1c62f662d6e1,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: FindChangeByList Sample Error Message-ID: <59b7e7fd.-1@webcrossing.la2eafNXanI> Date: Fri, 13 Feb 2009 09:17:52 -0800 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit