🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8137

Re: Duplicate Object

#8137
From: luca
Date: Fri, 03 Nov 2006 07:02
12 lines
1131 bytes
I write

var myStory = padre.parentStory;
myStory.insertionPoints[-1].select();
var pos=myStory.insertionPoints.length
app.paste();

ccc=myStory.insertionPoints.itemByRange(pos-1,pos-1)
var Oggettox=ccc.associatedXMLElements[0]
for(var x = 0; x < ccc.associatedXMLElements[0].length; x++){ alert("Oggettox " + Oggettox[x]) alert("Oggettox " + Oggettox[x].markupTag) alert("Oggettox " + Oggettox[x].markupTag.name) alert("Oggettox " + Oggettox[x].parent.markupTag.name) }

It's work well but i don't know if it is the right way.
Technical Details
Message-ID: <3bc227a9.12@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc227a9.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,1bb96d5ae08819ac
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: luca
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Duplicate Object
Message-ID: <3bc227a9.12@webcrossing.la2eafNXanI>
Date: Thu, 2 Nov 2006 23:02:23 -0800
References: <3bc227a9.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit