3 Replies Latest reply on May 25, 2010 1:10 AM by colling_s

    what is the wrong with this small code of groupitems

    Gargamit2291632 Level 1

      var msg =""

      if(app.documents.length > 0)
      {
      var pgItems = app.activeDocument.pageItems;

      tot_obj=pgItems.length ;

       

      if( pgItems.length > 0 )
      {
        var GroupItem =app.activeDocument.groupItems;
        total_Group = GroupItem.length;
       
         for(var a = 0;a<total_Group;a++)
         {
          GroupItem[a].hidden=true;
          }
        

      }
      }