Article View: adobe.scripting.indesign
Article #2403Re: Script to search for all small caps in a Document?
From: j.okuszko
Date: Thu, 18 Dec 2008 10:07
Date: Thu, 18 Dec 2008 10:07
18 lines
1193 bytes
1193 bytes
ok, thanks again! you really helped me out on that one! got it all working in CS2. here is the CS2 script:
var myDoc = app.activeDocument;
app.findPreferences = NothingEnum.nothing;
app.changePreferences = NothingEnum.nothing;
app.findPreferences.capitalization = Capitalization.SMALL_CAPS;
var myFinds = myDoc.search();
app.findPreferences = NothingEnum.nothing;
app.changePreferences = NothingEnum.nothing;
if (myFinds.length == 0) {
alert("No Small Caps found");
}
else {
alert("Small Caps found");
}
btw. what is this NothingEnum.nothing good for?
Technical Details
Message-ID:
<59b748e1.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b748e1.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d2c23c7fab87f926 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: j.okuszko@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Script to search for all small caps in a Document? Message-ID: <59b748e1.2@webcrossing.la2eafNXanI> Date: Thu, 18 Dec 2008 02:07:06 -0800 References: <59b748e1.-1@webcrossing.la2eafNXanI> Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit