1 Reply Latest reply on Dec 31, 2010 3:25 PM by eplicanic

    How can I get a number of items from a group


      I'm trying to load assets into a library. Most of the assets are groups. I'd like to label each asset with number of items from that specific group.


      Here is my code:

      var d=app.activeDocument;
      //create empty library
      var library = app.libraries.add(File('mylibrary.indl'));
      for(myCounter = 0; myCounter < d.pages.length; myCounter ++){
          if(d.pages[myCounter].groups.length > 0){
               //how do I get number of items from a group?
               var item_count = ????? 
               var item_count = '1';


      Thanks for your help and Happy New Year!!!