Article View: adobe.scripting.indesign
Article #20915Find/Change FontStyle script
From: J Peliksza
Date: Fri, 24 May 2002 15:59
Date: Fri, 24 May 2002 15:59
7 lines
1777 bytes
1777 bytes
Given a text selection with a certain Font but 2 different FontStyles (Bold and Regular), I would like to find (within the selection) the Bold FontStyle and change the Font of that part of the selection, then find the next FontStyle and change that part of the selection to another Font (keeping the same FontStyle), and so on. I'm using ID1.5 and VB6. I know I can do this with the Find/Change already built into ID, but I'd like to automate it using a script. I just don't know how to distinguish between the parts of the selection that are "Bold" and the parts that are "Regular." (I keep changing the whole thing to the first font, and the rest of it gets ignored.) I've looked at many scripts here that seem similar, but I can't find the right combination of words to make this happen! I appreciate any help anyone can give me. ~j~
Technical Details
Message-ID:
<ef8ba8c.-1@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!feedwest.news.agis.net!aleron.net!news-out.newsfeeds.com!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!newsfeed1.bredband.com!bredband!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3e40abdc3590aeb6,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-24 09:07:45 PST From: "J Peliksza" <jpeliskza@media-general.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!out.nntp.be!propagator2-SanJose!propagator-SanJose!in.nntp.be!feedwest.news.agis.net!aleron.net!news-out.newsfeeds.com!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!newsfeed1.bredband.com!bredband!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Find/Change FontStyle script Message-ID: <ef8ba8c.-1@WebX.aaQKaf7vad4> Date: Fri, 24 May 2002 08:59:02 -0700 Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit