Skip to main content
Participating Frequently
April 3, 2009
Question

CS3: Period in findWhat crashes InDesign

  • April 3, 2009
  • 3 replies
  • 1485 views
This code crashes InDesign CS3:

app.findTextPreferences.findWhat = ", .";
app.changeTextPreferences.changeTo = ".";
app.changeText();

This works fine:

app.findGrepPreferences.findWhat = ", \\.";
app.changeGrepPreferences.changeTo = ".";
app.changeGrep();

Hope this helps someone.

Walt
This topic has been closed for replies.

3 replies

Inspiring
April 6, 2009

How are you setting your FindChangeTextOptions and/or FindChangeGrepOptions? If you are attempting to set these directly to null then that will cause crashing.

Dave

Inspiring
April 7, 2009

I know that I've run into findText crashes a lot. So much so that I stopped using them entirely and have used findGrep instead.

Peter Kahrel
Community Expert
Community Expert
April 7, 2009

> I know that I've run into findText crashes a lot. So much so that I stopped using them entirely and have used findGrep instead.

find/changeGrep is also (a bit) quicker than find/change/Text.

Peter

Jongware
Community Expert
Community Expert
April 6, 2009

Sadly, CS3 may crash on virtually any scripted search/replace. I had it crash on double quotes, tabs, and even spaces. Usually, moving the specific s&r from regular to GREP or the other way around clears it for that offending file only.

The symptom seems connected to a specific file (as it may always fail on one and never on another), but saving as INX and re-loading never cleared it up for me. As it is quite a hassle to find the exact code it crashes on this time (with intermittant crashes on each new try), I usually shrug and do my replaces from memory. After all, it's just a few hundred of'em.

Peter Kahrel
Community Expert
Community Expert
April 6, 2009

Deleting the cashes helps, at least for a while. Patching up to the latest versions (5.0.4 and 6.0.1) seemed to have helped, too. The cashes are at documents and settings/user/local settings/application data/adobe/indesign/version 6.0/cashes (or version 5.0).

Peter

Robert at ID-Tasker
Legend
April 5, 2009

checked on few machines - no problems

maybe your file is damaged ? try to INXing it