Article View: adobe.scripting.indesign
Article #19603Re: [VB´] Write Textframe with different fonts
From: Dave Saunders
Date: Mon, 02 Dec 2002 15:51
Date: Mon, 02 Dec 2002 15:51
17 lines
1550 bytes
1550 bytes
Yes. Assigning formatting to text is one of the things I do with scripts all the time. Which platform are you on? Have you looked at the examples in the scripting guide? In this forum? There are many ways to do this. You could start by assigning a paragraph style to the text that calls up Arial (your use of that suggests a PC, so my AppleScript examples may not help -- your use of "VB" in the topic name is a bigger clue <grin>): set applied paragraph style of paragraph 1 of myTextFrame to paragraph style "ArialText" of document 1 I'd do the other two words using Character styles myself, although you could just use the font names: set applied character style of word 2 of paragraph 1 of myTextFrame to character style "FrutigerFont" of document 1 etc. Dave
Technical Details
Message-ID:
<1de6d4e2.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de6d4e2.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,7b3d2bca67002363 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-12-02 08:07:42 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [VB´] Write Textframe with different fonts Message-ID: <1de6d4e2.0@WebX.la2eafNXanI> Date: Mon, 2 Dec 2002 07:51:53 -0800 References: <1de6d4e2.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit