🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2480

Re: Script to search for all small caps in a Document?

#2480
From: Kasyan Servetsky
Date: Wed, 17 Dec 2008 08:46
24 lines
1151 bytes
Hi j.okuszko,

This script is for CS3 — I don't have CS2 any more.

Kasyan




 
var myDoc = app.activeDocument;
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.capitalization = Capitalization.SMALL_CAPS;
var myFinds = myDoc.findText();
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;

if (myFinds.length == 0) {
   alert("No Small Caps found");
}
else {
   alert("Small Caps found");  
}
Technical Details
Message-ID: <59b748e1.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <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: "Kasyan Servetsky" <askoldich@yahoo.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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.0@webcrossing.la2eafNXanI>
Date: Wed, 17 Dec 2008 00:46:17 -0800
References: <59b748e1.-1@webcrossing.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit