Article View: adobe.scripting.indesign
Article #206Re: how to group some objects and duplicate it and then enlarge the same group using javascript ??
From: sanatkumar
Date: Fri, 03 Apr 2009 14:34
Date: Fri, 03 Apr 2009 14:34
30 lines
1502 bytes
1502 bytes
hi everyone,finally i got my solution.Thanks everyone for ur great support.I wont hesitate to post the code so that other people can learn.If there is anything worng,then please let me know..thanks again..
Code :
main();
function main(){
if (app.documents.length != 0){
if (app.selection.length > 0){
//myDocument = app.documents.add();
var myObjectList = new Array;
var myObjectList1 = new Array;
for (i=0; i<app.selection.length; i++)
myObjectList.push (app.selection[i]);
//alert ("length of myObjectList is "+myObjectList.length);
var myGroup = app.activeDocument.groups.add(myObjectList);
var myGroup1=myGroup.duplicate(myGroup1,[22,2]);
myGroup1.absoluteHorizontalScale=150;
myGroup1.absoluteVerticalScale=150;
}
}
}
thanks and regards,
Sanat
Technical Details
Message-ID:
<59b87303.18@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeed.news2me.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!news1.google.com!news.glorb.com!newsfeed.news2me.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.18@webcrossing.la2eafNXanI> Date: Fri, 3 Apr 2009 07:34:28 -0700 References: <59b87303.-1@webcrossing.la2eafNXanI> Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit