🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1148

Re: it can not search the text with Grep, what's wronge with my code?

#1148
From: robin521
Date: Wed, 18 Feb 2009 07:58
28 lines
1778 bytes
Hi Peter,

yes, you are right! I need to find Arabic and i have been change my Grep, But there are still has no responses with my Indesign.





if(app.documents.length ==0){ 
alert("您没有打开任何文档!");	 
    }

//Clear the find/change preferences. 
app.findGrepPreferences = NothingEnum.nothing; 
app.changeGrepPreferences = NothingEnum.nothing; 
//Set the find options. 
app.findChangeGrepOptions.includeFootnotes = false; 
app.findChangeGrepOptions.includeHiddenLayers = false; 
app.findChangeGrepOptions.includeLockedLayersForFind = false; 
app.findChangeGrepOptions.includeLockedStoriesForFind = false; 
app.findChangeGrepOptions.includeMasterPages = false; 
//找到匹配的阿拉伯文文字进行修改. 
app.findGrepPreferences.findWhat = "[^A-Za-z0-9\\.-]+"; 
app.changeGrepPreferences.underline = true; 
app.documents.item(0).changeGrep(); 
//Clear the find/change preferences after the search. 
app.findGrepPreferences = NothingEnum.nothing; 
app.changeGrepPreferences = NothingEnum.nothing;
Technical Details
Message-ID: <59b7f00d.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f00d.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,72cfdd46072287ca
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: robin521@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: it can not search the text with Grep,
 what's wronge with my code?
Message-ID: <59b7f00d.2@webcrossing.la2eafNXanI>
Date: Tue, 17 Feb 2009 23:58:32 -0800
References: <59b7f00d.-1@webcrossing.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit