Article View: adobe.scripting.indesign
Article #9786Re: Variation of Dave's Script in "How To Begin Scripting"
From: Dave_Saunders
Date: Mon, 17 Jul 2006 20:28
Date: Mon, 17 Jul 2006 20:28
11 lines
1115 bytes
1115 bytes
If you know where the text is, then the first insertion point of the third word of the paragraph is: myText.paragraphs[0].words[2].insertionPoints[0]. Bear two things in mind when moving text around: 1. Always process from the back to the front of the text so that the messing around you do with each instance doesn't upset the other references you haven't processed yet. 2. Never move the anchor point itself inside the anchored item -- surefire way of getting a very loud crash. Dave
Technical Details
Message-ID:
<3bc0ed94.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0ed94.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,c3f000112de732ba X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Variation of Dave's Script in "How To Begin Scripting" Message-ID: <3bc0ed94.6@webcrossing.la2eafNXanI> Date: Mon, 17 Jul 2006 13:28:57 -0700 References: <3bc0ed94.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing