帮我瞧瞧这个有问题的:排版书时目录页码有规律的增加有JS实现
/*操作环境:Indesign CS6*/app.findChangeTextOptions.includeFootnotes = true;
app.findChangeTextOptions.caseSensitive = false;
app.findChangeTextOptions.wholeWord = false;
app.findChangeTextOptions.kanaSensitive = true;
app.findChangeTextOptions.widthSensitive = true;
app.findTextPreferences = app.changeTextPreferences = null;
replace ("戍"&"戊", "戌"); /*我想将“戊、戍”都换成“戌”*/
replace ("25", "29");
replace ("28", "32");/*....省了n个因客户改过正文,我编排目录页码都后推了4*/
function replace (myFind, myReplace)
{
app.findTextPreferences.findWhat = myFind;
app.changeTextPreferences.changeTo = myReplace;
app.activeDocument.changeText ();
}
/*这个文档是一双击以后将整个文档都换了,能否只对我选择部分或者当前“某篇文章”执行*/