🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2304

Re: Prevent untag() children

#2304
From: rhariharasudhan05
Date: Tue, 23 Dec 2008 06:34
30 lines
1611 bytes
Dear Subhaoviya,

Currently we can't get the "menuActions methods" in CS2. So we are able to indirectly use for what you expect.

for your query :
  <contentA>1.
<contentB>Some content here.</contentB>
</contentA>

You need :
     <contentB>Some content here.</contentB> -> untag

Your Answer :
       Some content here.

Like that? then here the below coding, you can use.

/** before you catch the XML Elements of the correct element **/
    var y = app.selection[0].characters.length;
    app.select(elm.xmlElements[i].characters[0], SelectionOptions.replaceWith);
   app.select(elm.xmlElements[i].characters[y-2], SelectionOptions.addTo);
   app.select(elm.xmlElements[i].texts);
   elm.xmlElements[i].untag();

// *now you get the untaged value of the currect Element.*//

Please let me know if you have any queries.

Thanks & Regards
T.R.Harihara SudhaN
Technical Details
Message-ID: <59b6bba2.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!newsfeed.freenet.de!ramfeed2.eweka.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing
References: <59b6bba2.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a82eddca8b198325
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: rhariharasudhan05@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Prevent untag() children
Message-ID: <59b6bba2.3@webcrossing.la2eafNXanI>
Date: Mon, 22 Dec 2008 22:34:45 -0800
References: <59b6bba2.-1@webcrossing.la2eafNXanI>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!newsfeed.freenet.de!ramfeed2.eweka.nl!eweka.nl!hq-usenetpeers.eweka.nl!news4us.nl!webcrossing