Article View: adobe.scripting.indesign
Article #2397DoScript doesn't
From: sglinert
Date: Thu, 18 Dec 2008 02:24
Date: Thu, 18 Dec 2008 02:24
15 lines
1305 bytes
1305 bytes
I am trying to run the FindChangeByList JavaScript in CS4. My FindChangeList.txt is in the same folder as the script. When I try to run the script, it crashes out here:
app.doScript(myString, ScriptLanguage.javascript);
telling me that a string is expected (Error 25).
In the debugger, I can see the string value, and it seems correct.
Here is the FindChangeList.txt entry (currently, it's the only line in the file for debugging simplification:
text {find what:"~TRA"} {applied character style:"TRA/TMS/CCC", change to:"<27A4>"} {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}
I really hope someone can figure out what the problem is. I am currently having to do hundreds of find/replaces by hand.
Thanks in advance.
Technical Details
Message-ID:
<59b74caa.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,d4e0e3540e02fe46,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: sglinert@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: DoScript doesn't Message-ID: <59b74caa.-1@webcrossing.la2eafNXanI> Date: Wed, 17 Dec 2008 18:24:29 -0800 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit