Article View: adobe.scripting.indesign
Article #1222it can not search the text with Grep, what's wronge with my code?
From: robin521
Date: Mon, 16 Feb 2009 04:23
Date: Mon, 16 Feb 2009 04:23
22 lines
1621 bytes
1621 bytes
Hi scripter, I got a Arabian files that include English and arabian fonts, but i need to find Arabian to change Fonts style. my grep may got some pro. please see the below: //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; //Regular expression for finding an email address. app.findGrepPreferences.findWhat = "[^A-Za-z0-9/.-]+"; //Apply the change to 24-point text only. app.findGrepPreferences.pointSize = 24; 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.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,72cfdd46072287ca,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: robin521@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: it can not search the text with Grep, what's wronge with my code? Message-ID: <59b7f00d.-1@webcrossing.la2eafNXanI> Date: Sun, 15 Feb 2009 20:23:40 -0800 Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit