Article View: adobe.scripting.indesign
Article #14536Re: [JS] Copying a small string to memory (and deleteing it)
From: Dave_Saunders
Date: Tue, 27 Jan 2004 23:07
Date: Tue, 27 Jan 2004 23:07
11 lines
1024 bytes
1024 bytes
The problem is that myNewPos is set to an index into a JavaScript string variable. It needs to be a reference to the position in the InDesign text where you want to move the text. Insert before the last line: myTextPos = myPara.characters[myNewPos]; Then change myNewPos to myTextPos in the last line. I think that will work. Dave
Technical Details
Message-ID:
<2ccf9ac5.10@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf9ac5.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,47d76c5f53276933 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-27 15:07:53 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [JS] Copying a small string to memory (and deleteing it) Message-ID: <2ccf9ac5.10@webx.la2eafNXanI> Date: Tue, 27 Jan 2004 15:07:05 -0800 References: <2ccf9ac5.-1@webx.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit