🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8636

Re: CS2(JS)ParagraphStyle

#8636
From: Dave_Saunders
Date: Mon, 02 Oct 2006 13:10
15 lines
1152 bytes
What do you mean by "tag"? XML? Tagged Text? Paragraph style?

If the last, then why not:

myTF.texts[0].appliedParagraphStyle.name;

That actually gives you the style of the first character, but, if things are as you say, then that's all you need.

You could also do:

myStyles = myTF.paragraphs.everyItem().appliedParagraphStyle;

then iterate through the array checking that all the names are the same to be sure the condition is met and only then return the name.

Dave
Technical Details
Message-ID: <3bc1d838.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc1d838.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,21d91a5828d2ce59
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS2(JS)ParagraphStyle
Message-ID: <3bc1d838.0@webcrossing.la2eafNXanI>
Date: Mon, 2 Oct 2006 06:10:29 -0700
References: <3bc1d838.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit