11 Replies Latest reply on May 12, 2017 12:51 PM by cmoke73

    count number of objects in a group

    cmoke73 Level 1

      Hi!

      I don´t know if it is that obviously but I didn't found an explanation why this line causes an error:

       

      alert(app.documents[0].groups[0].count());
      

       

      The group contains a rectangle and a textFrame. (I want to separate those groups from others with more objects or other KIND of objects.)

       

      Here I´ve read something like:

      ...

      number count ()

      Displays the number of elements in the Group.

      ...

       

      Did I misunderstood the hint?

       

      regards

      A.