Article View: adobe.scripting.indesign
Article #14615Re: JS undefined properties...
From: Dave_Saunders
Date: Fri, 23 Jan 2004 17:10
Date: Fri, 23 Jan 2004 17:10
13 lines
1052 bytes
1052 bytes
Oh, the problem is that you've extracted the contents of the line into myLine and then you're trying to operate on myLine as though it is still a line of text in your story, but it's not it's a JavaScript variable. change: myLine=myPara.lines[myLineStep].contents; to myLine=myPara.lines[myLineStep]; But that will break your attempts to read the individual characters into alerts; add .contents to those. Dave
Technical Details
Message-ID:
<2ccf884d.7@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf884d.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c2ae6c74d069cf9 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-23 09:38:01 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: JS undefined properties... Message-ID: <2ccf884d.7@webx.la2eafNXanI> Date: Fri, 23 Jan 2004 09:10:13 -0800 References: <2ccf884d.-1@webx.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit