Article View: adobe.scripting.indesign
Article #9170How to Untag text
From: Karthik_ind
Date: Sat, 09 Sep 2006 03:44
Date: Sat, 09 Sep 2006 03:44
19 lines
1131 bytes
1131 bytes
Hi All,
I want to untag the selected text in InDesign CS2 with javascript.
Here is mycoding, its running very well but the selection text is not untagged.
Check my coding and suggest me what's wrong with my script.
---------------------------------------------------------------------
var mydoc = app.activeDocument;
var mytext = mydoc.selection;
if(mytext[0].associatedXMLElements[0].markupTag.name = "ce:italic")
{
var myxml = mytext[0].associatedXMLElements[0];
myxml.untag;
}
---------------------------------------------------------------------
Technical Details
Message-ID:
<3bc1906d.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,229252c7ca9d791c,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Karthik_ind@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!news.buerger.net!open-news-network.org!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: How to Untag text Message-ID: <3bc1906d.-1@webcrossing.la2eafNXanI> Date: Fri, 8 Sep 2006 20:44:22 -0700 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit