1 Reply Latest reply on Jul 2, 2012 2:07 AM by csm_phil

    selecting objects in group

    _xe54_

      Hi,

      I am new on scripts, so could someone help me..
      I try to access grouped object in page (type of contents - textFrames, rectangles etc.)

      How make array of selected object/group in document?

       

      Regards

      xe

        • 1. Re: selecting objects in group
          csm_phil Level 4

          Hi xe,

           

          Please try the below JS code.

           

           

          var myDoc = app.activeDocument;
          var myPage = myDoc.pages[0];
          
          the below line selected the first page of the first groupd object.
          //myPage.groups[0].select();
          
          the below line is selected the first page of first group object of 1st textframe.
          myPage.groups[0].textFrames[0].select();
          

           

           

          thx

          csm_phil