Article View: adobe.indesign.featurerequests
Article #220Re: Finding text overflows in any document
From: Peter_Spier
Date: Mon, 29 Dec 2008 21:29
Date: Mon, 29 Dec 2008 21:29
28 lines
1479 bytes
1479 bytes
See if this works:
if (app.documents.length != 0){
var myFrames = app.activeDocument.textFrames;
var thePageNames = new Array();
for (var j = 0 ; j <= (myFrames.length - 1); j++) {
if(myFrames[j].overflows == true){
try {
thePageName = myFrames[j].parent.documentOffset;
} catch (e) {
continue; // must be on Pasteboard so ignore
}
thePageNames[thePageName] = 1
}
}
if (thePageNames.length == 0) {
alert("No oversets found on pages.");
} else{
var s = "";
for (i in thePageNames) {
s = s + app.documents[0].pages[Number(i) - 1].name + ", ";
}
s = s.substring(0,s.length - 2);
alert("Check for oversets on page(s): " + "\n" + s);
}
} else {
alert("No documents are open.");
}
Technical Details
Message-ID:
<59b761e7.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b761e7.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe7f,c10c6fc85da3d407 X-Google-Attributes: gid1efe7f,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Peter_Spier@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.indesign.featurerequests Subject: Re: Finding text overflows in any document Message-ID: <59b761e7.7@webcrossing.la2eafNXanI> Date: Mon, 29 Dec 2008 13:29:08 -0800 References: <59b761e7.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit