Article View: adobe.scripting.indesign
Article #1543Re: Trying to get an old script to work in CS3
From: Olav_Kvern
Date: Thu, 05 Feb 2009 19:54
Date: Thu, 05 Feb 2009 19:54
15 lines
1676 bytes
1676 bytes
Hi Diane, First, take a look at the findText method under the Document object in the Object Model Viewer--you'll see that findText(), unlike search(), has only one parameter. All of the parameters that search() took in CS2 are now handled by setting preferences properties in CS3. re: "myAncLocation is undefined" There's nothing for it but to debug. Put a breakpoint on that line, then run the script up to that point. Then try stepping through the breakpoint. Does the script fail on the first attempt? If so, then there's something wrong with the text reference you're passing in. If not, then the problem has to do with some unexpected condition in some part of the text. Stepping through the script while watching the variables change and/or using $.writeln() statements to write variable values to the ESTK console will probably reveal the problem. I'm guessing that the trouble lies in the getParentTextFlow function for text in a cell, but I can't quickly tell without having one of your documents. Thanks, Ole
Technical Details
Message-ID:
<59b7ca4f.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7ca4f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,439ee5f9598104f5 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Trying to get an old script to work in CS3 Message-ID: <59b7ca4f.4@webcrossing.la2eafNXanI> Date: Thu, 5 Feb 2009 11:54:17 -0800 References: <59b7ca4f.-1@webcrossing.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit