Article View: adobe.scripting.indesign
Article #8582Re: textCleanUp.vbs remove character
From: Olav_Kvern
Date: Wed, 11 Oct 2006 18:34
Date: Wed, 11 Oct 2006 18:34
49 lines
1576 bytes
1576 bytes
Hi Ben, Hmmm. Looks like something changed somewhere along the line since I wrote the script. When you're replacing text strings, you now need to include the strings as search method parameters (in VBScript only, as far as I can tell). Open the TextCleanup.vbs script and make the following changes: Preceding the line: Loop add: myInDesign.FindPreferences = idNothingEnum.idNothing myInDesign.ChangePreferences = idNothingEnum.idNothing Preceding the line: Rem The third field in the line can be either "once" or "all" add: myFindString = myInDesign.FindPreferences.FindText myChangeString = myInDesign.ChangePreferences.ChangeText then, in three places, where you see the line: Set myFoundItems = myObject.Search change it to: Set myFoundItems = myObject.Search(myFindString, , , myChangeString) That works here, at least. Let me know if it works for you! Thanks, Ole
Technical Details
Message-ID:
<3bc1f06d.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossingReferences:
<3bc1f06d.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,af3ab86490b28ad2 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Olav_Kvern@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: textCleanUp.vbs remove character Message-ID: <3bc1f06d.3@webcrossing.la2eafNXanI> Date: Wed, 11 Oct 2006 11:34:50 -0700 References: <3bc1f06d.-1@webcrossing.la2eafNXanI> Lines: 36 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.isoc.lu!news.stben.net!webcrossing