🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #7

Re: how to group some objects and duplicate it and then enlarge the same group using javascript ??

#7
From: jongware
Date: Tue, 31 Mar 2009 22:15
24 lines
1228 bytes
Hmm. I *think* you got the order wrong:

loop
  create array of one page item only; add to group

Try this:

var myObjectList = new Array; 
for (i=0; i<app.selection.length; i++)

	myObjectList.push (app.selection[i]);

alert ("length of myObjectList is "+myObjectList.length);

-- an alternative way of creating a valid array of selected items. I can't get

      var myObjectList = new Array(app.selection)




to work (it certainly sounds as if it should work ...).

The resulting array object then can be fed into the group creating line.
Technical Details
Message-ID: <59b87303.6@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b87303.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8506c72425d12370
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: how to group some objects  and  duplicate
 it and then enlarge the same group using javascript
 ??
Message-ID: <59b87303.6@webcrossing.la2eafNXanI>
Date: Tue, 31 Mar 2009 15:15:56 -0700
References: <59b87303.-1@webcrossing.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit