3 Replies Latest reply on Nov 4, 2009 12:07 AM by Loic.Aigon

    Is it possible to group 2 objects that are located on 2 different pages in InDesign CS4 JS

    Yuliaart Level 1

      Is it possible to group 2 objects that are located on 2 different pages. Would it be something like that:

       

       

              var myArray = new Array;
              //Add the items to the array.
              myArray.push(myLine1);
              myArray.push(myLine2);
              //Group the items.
              var myPages = app.activeDocument.pages;
              myGroup = myPage.groups.add(myArray);

       

       

      Thank you very much for your help.

      Yulia