Article View: adobe.scripting.indesign
Article #1802Re: MapStylesToTags script
From: loic_aigon
Date: Sun, 18 Jan 2009 00:01
Date: Sun, 18 Jan 2009 00:01
13 lines
868 bytes
868 bytes
And in case you may want to relaunch the script...
var doc = app.activeDocument;
var myPgSt = doc.paragraphStyles.everyItem().getElements();
for(i=2;i<myPgSt.length;i++) {
if(doc.xmlTags.item(String(myPgSt[i].name))==null)
{
doc.xmlTags.add(String(myPgSt[i].name));
}
}
Technical Details
Message-ID:
<59b78a48.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<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.1@webcrossing.la2eafNXanI> Date: Sat, 17 Jan 2009 16:01:29 -0800 References: <59b78a48.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit