🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20927

Re: Find/Change FontStyle script

#20927
From: J Peliksza
Date: Fri, 24 May 2002 20:57
5 lines
1508 bytes
Dave, Ole,
 Thanks for the clue, but I'm still lost. I've still got 1.5, unfortunately.
 I keep getting an "object does not support this property or method" error, and I'm guessing it has something to do with the fact that I have no idea how to use TextStyleRanges... (Keep in mind, I really   don't  know what I'm doing ;)
  For myTextStyleRangeCounter = mySelection.TextStyleRanges.Count To 1 Step -1     myStory = mySelection.TextStyleRanges.Item(myTextStyleRangeCounter).Item(1)         Select Case myStory         Case "Bold"         myStory.Font = "Helvetica"         Case Else         myStory.Font = "Times New Roman"         End Select     Next  There's something I'm just not getting here... Obviously, I need help!
 ~j~
Technical Details
Message-ID: <ef8ba8c.2@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8ba8c.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3e40abdc3590aeb6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-24 14:07:35 PST
From: "J Peliksza" <jpeliskza@media-general.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!213.73.101.75.MISMATCH!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Find/Change FontStyle script
Message-ID: <ef8ba8c.2@WebX.aaQKaf7vad4>
Date: Fri, 24 May 2002 13:57:16 -0700
References: <ef8ba8c.-1@WebX.aaQKaf7vad4>
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit