Article View: adobe.scripting.indesign
Article #17687Exporting selected XML element [AS]
From: Richard Ronnback
Date: Fri, 23 May 2003 06:12
Date: Fri, 23 May 2003 06:12
20 lines
1329 bytes
1329 bytes
How do I export only the selected XML element to file? When I try this: tell application "InDesign 2.0.2" tell document 1 tell XML export preferences set export from selected to true end tell export format "xml" to "Macintosh HD:Users:richardr:Desktop:kasta.xml" without showing options end tell end tell the xml export elements preference seems to change but the exported file still contains the whole structure. If I set it to "with showing options" and just click OK in the UI the selected elemens only gets exported. What do I do to export the selected element only?
Technical Details
Message-ID:
<1de93e12.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,134436b615023bf3,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-22 23:37:36 PST From: "Richard Ronnback" <richard.ronnback@telia.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Exporting selected XML element [AS] Message-ID: <1de93e12.-1@WebX.la2eafNXanI> Date: Thu, 22 May 2003 23:12:22 -0700 Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit