🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20815

Re: Iterate through all Character styles?

#20815
From: GeekGod
Date: Thu, 30 May 2002 15:47
11 lines
1100 bytes
I seem to like answering myself a lot!  Here's the solution to this issue: 

First, get a refernce to your document.  In this case, we are using mydocument.  Second, run this code: 

for each item in mydocument.charstyles 

 msgbox item.name 

next 

-GG
Technical Details
Message-ID: <ef8d475.0@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8d475.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8aca7d6dae2730cc
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-30 09:08:55 PST
From: GeekGod <geekgod@geekgod.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!supernews.com!telocity-west!TELOCITY!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Iterate through all Character styles?
Message-ID: <ef8d475.0@WebX.aaQKaf7vad4>
Date: Thu, 30 May 2002 08:47:18 -0700
References: <ef8d475.-1@WebX.aaQKaf7vad4>
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit