🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10069

Re: How to begin scripting?

#10069
From: Bret_Dupre
Date: Fri, 07 Jul 2006 16:21
26 lines
1421 bytes
Dave,
Back to the first topic, I must have not followed every step because I still can't get the script to show me the overset text in CS2.
Did I paste something incorrectly?

if (app.documents.length == 0) {
  alert("There are no open documents.");
  exit();
}
myDoc = app.activeDocument;
myOsetList = myDoc.stories.everyItem().overflows;
for (j = 0; myOsetList.length > j; j++) {
  if (myOsetList) {
  	function selectIt(theObj){
	// Selects object, turns to page and zooms in on it
	app.select(theObj,SelectionOptions.replaceWith);
	app.activeWindow.zoom = ZoomOptions.fitPage;
	app.activeWindow.zoomPercentage = 200;
	// j-th story is overset; tell the user and exit
  	selectIt(myDoc.stories.textFrames[-1]);
  exit();
}
alert("No stories are overset");
}
}

Thanks
Technical Details
Message-ID: <3bbd759f.103@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bbd759f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dd9eb181c1e6fc23,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bret_Dupre@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: How to begin scripting?
Message-ID: <3bbd759f.103@webcrossing.la2eafNXanI>
Date: Fri, 7 Jul 2006 09:21:26 -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!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing