Article View: adobe.scripting.indesign
Article #16663[VB] Selecting and making text bold.
From: B Holt
Date: Fri, 08 Aug 2003 02:24
Date: Fri, 08 Aug 2003 02:24
15 lines
1794 bytes
1794 bytes
I realise there have been discussions on this before, but i couldn't find that told me exactly what i need to do. Anyway, my program generates a line of text that looks like this: < B>First text goes here<D> Then the rest goes here. The text is then placed in a text frame in indesign. Then text inbetween the < B> and the <D> needs to be made bold and the tags need to be removed. I wrote up some routines to remove the tags and find the number of characters 'in' from the end where the bold will stop. Then I got stuck trying to find out how to select that certain text and make it bold. While reading some threads on here it seems like tagged text would be a better way to do it, but I am unable to 'Place' the text from an outside file like you would normally do when importing tagged text. Is there a way to import a line of tagged text (it'll be a string) into a text frame but make it use the tagged text formatting? If not, how do I manually select a certain number of characters in a text frame and then make them bold? thanks.
Technical Details
Message-ID:
<1dea3eff.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.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,6d07e8a4d51bad2a,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-07 19:37:55 PST From: "B Holt" <holtwj@mcmaster.ca> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: [VB] Selecting and making text bold. Message-ID: <1dea3eff.-1@WebX.la2eafNXanI> Date: Thu, 7 Aug 2003 19:24:35 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit