Article View: adobe.scripting.indesign
Article #175Re: how to group some objects and duplicate it and then enlarge the same group using javascript ??
From: sanatkumar
Date: Tue, 31 Mar 2009 10:29
Date: Tue, 31 Mar 2009 10:29
20 lines
1238 bytes
1238 bytes
The code that i m using is like this..fist i m selecting and then grouping them using array.But this one is not working perfectly..Its showing error at var myObjectList = new Array(myPageItem);
Could anyone tell me the solution...
main();
function main(){
if (app.documents.length != 0){
if (app.selection.length > 0){
for(myCounter = 0; myCounter<app.selection.length; myCounter++){ myPageItem = app.selection[myCounter];
var myObjectList = new Array(myPageItem);
var myGroup =myDocument.groups.add(myObjectList);
}
}
}
}
Technical Details
Message-ID:
<59b87303.5@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<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: sanatkumar@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.5@webcrossing.la2eafNXanI> Date: Tue, 31 Mar 2009 03:29:21 -0700 References: <59b87303.-1@webcrossing.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit