Article View: adobe.scripting.indesign
Article #10086Re: How to begin scripting?
From: Dave_Saunders
Date: Fri, 07 Jul 2006 18:54
Date: Fri, 07 Jul 2006 18:54
26 lines
1275 bytes
1275 bytes
This part is still wrong:
myOsetList = myDoc.stories.everyItem().overflows;
for (j = 0; myOsetList.length > j; j++); {
if (myOsetList) {
// j-th story is overset; tell the user and exit
selectIt(myDoc.stories[j].textFrames[-1]);
exit();
}
It should read:
myOsetList = myDoc.stories.everyItem().overflows;
for (j = 0; myOsetList.length > j; j++); {
if (myOsetList[j]) {
// j-th story is overset; tell the user and exit
selectIt(myDoc.stories[j].textFrames[-1]);
exit();
}
}
I've made two changes:
Put back in the [j] in the if statement and added a closed bracket to close-out the if statement.
Dave
Technical Details
Message-ID:
<3bbd759f.110@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossingReferences:
<3bbd759f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dd9eb181c1e6fc23 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: How to begin scripting? Message-ID: <3bbd759f.110@webcrossing.la2eafNXanI> Date: Fri, 7 Jul 2006 11:54:20 -0700 References: <3bbd759f.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing