6 Replies Latest reply on Dec 3, 2017 12:02 PM by r-bin

    Check if the color sampler is present

    geppettol66959005 Level 3

      I tried this solution but it does not work

      Where am I doing wrong

       

      var doc = activeDocument; 

      try{ 

         if (activeDocument.colorSamplers.length > 0)

       

         {alert ("color sampler/s exist/s")};

         

           } 

       

      catch(){ 

       

             {alert ("color sampler/no exist")};

          

           }