🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1800

Re: MapStylesToTags script

#1800
From: loic_aigon
Date: Sat, 17 Jan 2009 20:34
6 lines
856 bytes
Hi
Sth like :

var doc = app.activeDocument;
var myPgSt = doc.paragraphStyles.everyItem().getElements();
for(i=2;i<myPgSt.length;i++) { 	doc.xmlTags.add(myPgSt[i].name); } I needed to start the loop to 2 to avoid the two basic styles as No paragraph & basic paragraphs Loic
Technical Details
Message-ID: <59b78a48.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b78a48.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,9cb0961f903dcdf7
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: loic_aigon <loic_aigon@yahoo.fr>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: MapStylesToTags script
Message-ID: <59b78a48.0@webcrossing.la2eafNXanI>
Date: Sat, 17 Jan 2009 12:34:31 -0800
References: <59b78a48.-1@webcrossing.la2eafNXanI>
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit