Article View: adobe.scripting.indesign
Article #18047AS changing text attributes
From: John Darnell
Date: Fri, 25 Apr 2003 16:18
Date: Fri, 25 Apr 2003 16:18
17 lines
1462 bytes
1462 bytes
I am essentially importing text from a file, and the text must be formatted on the fly. For example I will have a line that looks like this:
Ole is a [BOLD]great[UNBOLD] script teacher!
I'm looking for a way to make great look bolded.
I'm trying to figure out how to make this work. So far I have tried working with insertion points but for some reason they don't work.
My code looks like this
set myframe to make text frame with properties{assume appropriate properties}
set MyIP to insertion point -1 of myframe
When I ran this, AS told me that it couldn't make one type into another, or words to that effect.
Is it possible/practical to apply a character style, one character at a time? This solution might work.
Technical Details
Message-ID:
<1de8dffa.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!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,3f638a313e6d5906,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-25 09:38:01 PST From: "John Darnell" <John.Darnell@Walsworth.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!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: AS changing text attributes Message-ID: <1de8dffa.-1@WebX.la2eafNXanI> Date: Fri, 25 Apr 2003 09:18:02 -0700 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit