🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20492

Re: Apply character style to chosen characters? (AS)

#20492
From: Shane Stanley
Date: Wed, 03 Jul 2002 22:27
23 lines
1465 bytes
in article ef97992.-1@WebX.aaQKaf7vad4, Kari Puikkonen wrote:

> repeat with myCounter from (count myFoundItems) to 1 by -1
> set myFoundItem to item myCounter of myFoundItems
> end repeat 
> 
> set theStyle to character style "Time"
> 
> tell item 1 of myFoundItems
> set applied character style to theStyle
> end tell 

Try something like:

  set theStyle to character style "Time"
  repeat with myCounter from (count myFoundItems) to 1 by -1
  tell item myCounter of myFoundItems
   set applied character style to theStyle
  end tell 
  end repeat

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <B949B77B.35221%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef97992.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e7eb9c0f57bd6ad2
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-03 15:40:00 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Apply character style to chosen characters? (AS)
Message-ID: <B949B77B.35221%sstanley@myriad-com.com.au>
Date: Wed, 3 Jul 2002 15:27:40 -0700
References: <ef97992.-1@WebX.aaQKaf7vad4>
Lines: 24
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit