Article View: adobe.scripting.indesign
Article #1299Re: Indesign para2txtframe script problem
From: Dave_Saunders
Date: Mon, 09 Feb 2009 00:36
Date: Mon, 09 Feb 2009 00:36
7 lines
1132 bytes
1132 bytes
Ah. Of course. First, j++ is not equivalent to j+1. It is the equivalent of j = j+1. The reason you only got half the paragraphs in my version is because each time around the loop the story got shorter by one paragraph and while j went up one, myStory.paragraphs.length came down by one. And so they met half way through the story -- hmm, this is starting to sound like Gerard Hoffnung's famous speech to the Oxford Union. But in your version, j never changed and so when myStory.paragraphs.length reached zero, the loop stopped. Dave
Technical Details
Message-ID:
<59b7d1f3.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7d1f3.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,da3e0bfe5178684b X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Indesign para2txtframe script problem Message-ID: <59b7d1f3.7@webcrossing.la2eafNXanI> Date: Sun, 8 Feb 2009 16:36:54 -0800 References: <59b7d1f3.-1@webcrossing.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit