🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8112

Duplicate Object

#8112
From: luca
Date: Thu, 02 Nov 2006 09:50
24 lines
1170 bytes
I have a problem with INdesign JavaScripting

Now I Copy and Paste some object from a document to another,
I repeat this action many times. It's Slow

I think to
Save in a Array the objects to copy
and then I use the array elements to duplicate the single Object in my document

write some lines like this but it doesn't work

Documento=app.activeDocument;
//PUT THE OBJECT IN ARRAY
var Selezione = new Array()
Selezione.unshift(Documento.selection)

//After I think to use toSource() in this way
//CREATE A NEW ELEMENT LIKE THE ORIGINAL

eval(Selezione[0].toSource())

Mybe I don't understand the Method toSource()!

Thanks
Technical Details
Message-ID: <3bc227a9.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing

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!news.germany.com!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Duplicate Object
Message-ID: <3bc227a9.-1@webcrossing.la2eafNXanI>
Date: Thu, 2 Nov 2006 01:50:07 -0800
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit