Article View: adobe.scripting.indesign
Article #313Re: Clear text overrides in applescriot for Indesign CS3 on Mac OSX 10.5.6
From: jongware
Date: Wed, 25 Mar 2009 22:17
Date: Wed, 25 Mar 2009 22:17
17 lines
1569 bytes
1569 bytes
Well, I *think* it can, but I'm guessing it would be overkill to build it into the main huge loop construction. To do that, you would use something like var fontlist = ["Trebuchet MS", "Haettenschweiler" ]; // whatever ... for (fonts=0; fonts<fontlist.length; fonts++) app.findTextPreferences.appliedFont = fontlist[fonts]; with a suitable char style name in the replace. It would be overkill because -- most likely -- you're not interested in bold or italic dingbats (are you?). It might be better to write a separate find/change loop for this -- just the above lines, and outside the fancy looping. I hope you are just aiming to replace a hardcoded font by the same in a char style. If you intend to replace the font as well, you'll probably need to replace individual characters with others too, and in that case I'd advise just using the FindChange script and its associated configuration text file.
Technical Details
Message-ID:
<59b86485.16@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b86485.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,eb2cfe05176434d3 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: jongware@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Clear text overrides in applescriot for Indesign CS3 on Mac OSX 10.5.6 Message-ID: <59b86485.16@webcrossing.la2eafNXanI> Date: Wed, 25 Mar 2009 15:17:46 -0700 References: <59b86485.-1@webcrossing.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit