🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16660

[AS] Create Parent XML Tag?

#16660
From: James Naylor
Date: Thu, 07 Aug 2003 16:17
34 lines
1458 bytes
Is it possible, using Applescript to create a 'parent' wrapping xml tag for two selected text frames (which have already been tagged?



i.e. in the structure palette, there are two tags selected (from having the text frames selected):

Headline 
Text





The final structure would look like this (with the previous tags wrapped in an article tag):

Article 
    ->Headline 
    ->Text





But I cannot get various combinations of

 
set makeParentElement to make xml element with properties {markup tag:"Article"} 
tell xml element [blah] to move to makeParentElement





Am I barking up the wrong tree? Is this even possible?
Technical Details
Message-ID: <1dea3cb9.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.254.138.56.MISMATCH!news.primus.ca!news.primus.ca!npeer.de.kpn-eurorings.net!uni-erlangen.de!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,12f7834d633afa1f,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-08-07 09:38:06 PST
From: "James Naylor" <james.naylor@rbi.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.254.138.56.MISMATCH!news.primus.ca!news.primus.ca!npeer.de.kpn-eurorings.net!uni-erlangen.de!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: [AS] Create Parent XML Tag?
Message-ID: <1dea3cb9.-1@WebX.la2eafNXanI>
Date: Thu, 7 Aug 2003 09:17:58 -0700
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit