🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by Dave_Saunders Fri, 13 Feb 2009 17:17
FindChangeByList Sample Error
#1274
Author: Dave_Saunders
Date: Fri, 13 Feb 2009 17:17
15 lines
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
Re: FindChangeByList Sample Error
#1280
Author: Peter Kahrel
Date: Fri, 13 Feb 2009 18:55
5 lines
967 bytes
Though it probably has nothing to do with the problem you report, GREP doesn't have an option "wholeWord". Text does.

What your two cases have in common is that when in the search pair \r follows, the previous paragraph takes on \r's paragraph style, but when \r is first in the pair, it doesn't. This still doesn't explain anything!

Peter
Re: FindChangeByList Sample Error
#1281
Author: Dave_Saunders
Date: Fri, 13 Feb 2009 19:27
3 lines
871 bytes
Ah thanks for pointing out the wholeword thing. More red for the slide! Still, it makes a point I was wondering about how to fit in: if you try to read a non-existing property, you get an error, but if you write to one it just makes a new one for you.

Dave
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads