Article View: adobe.scripting.indesign
Article #18Re: how to group some objects and duplicate it and then enlarge the same group using javascript ??
From: sanatkumar
Date: Wed, 01 Apr 2009 11:55
Date: Wed, 01 Apr 2009 11:55
28 lines
1418 bytes
1418 bytes
Thanks a lot jongware..now its selecting the objects correctly but i m struck with adding to the group and duplicating the group.
I tried the follwing code but it didnot work.
main();
function main(){
if (app.documents.length != 0){
if (app.selection.length > 0){
var myObjectList = 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.documents.groups.add(myObjectList);
var myGroup1=app.documents.groups.duplicate(myObjectList1,myObjectList1);
}
}
}
I know i m asking silly questions but i m a begginer to this scripting and want to learn more.Please guide me with the proper code to do so.
Thanks,
Sanat
Technical Details
Message-ID:
<59b87303.7@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.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!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.7@webcrossing.la2eafNXanI> Date: Wed, 1 Apr 2009 04:55:24 -0700 References: <59b87303.-1@webcrossing.la2eafNXanI> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit