8 Replies Latest reply on Nov 29, 2017 12:56 PM by smithcgl9043167

    Abort the default Photoshop progress bar

    smithcgl9043167 Level 2

      Screenshot_2.jpg

      Hello everyone! Is there any way to abort or hide this "standard progress bar" when exporting high-quality prints through scripts?

      I added a custom progress bar to my script that took too long but I sometimes realize that the two palettes are shown at the same time? It would be possible?

       

      That's the palette I'm using! If someone has another functional model I am very grateful

      myPrs = new Window('palette', 'Batch Processing');
           myPrs.orientation = 'column';
           myPrs.alignment = 'right';
           myPrs.ProcessHead  = myPrs.add('statictext',[40,0,260,25], "Batch Processing...");
           myPrs.Process = myPrs.add("progressbar",[40,40,260,65]);
           myPrs.Label = myPrs.add('statictext', [150,75,200,120], "0%");
           myPrs.Process.value = 0;
      
           var LENGTH = 4;
      
           myPrs.show();
      
           for(i=0;i<1;i++){
               var PrCounter = 0;
              ProgressBar(++PrCounter, i+1 , 1);
               Function1();
           }
          
          
           function ProgressBar(v, x, y){
               var value = (Number(v) / LENGTH) * 100;
               myPrs.Label.text = Math.round(value) + " % ";
               myPrs.ProcessHead.text = "Batch Processing... [" + x + "/"+ y + "]";
               myPrs.Process.value = value;
           }
      
        
            function Function1(){
            // my code
           }