[platypus-dev] Reset progress bar back to indeterminate

  • From: Andrew MacKenzie <andrewmac@xxxxxxxxxxxx>
  • To: platypus-dev@xxxxxxxxxxxxx
  • Date: Thu, 12 Dec 2013 15:01:23 -0600

Hi,

For a Progress Bar output app, is there a way to tell the progress bar to go 
back to an indeterminate state after using echo "PROGRESS:value" to set it to a 
percentage?  I have a script which loops until something cool happens.  I'd 
like it to show an indeterminate progress bar (barber shop) until the cool 
stuff happens, then go to stepped progress.  After the cool stuff is done, I'd 
like it to go back to an indeterminate state.  

Can I do that?  Like this:

while : ; do 
echo "this should be indeterminate progress bar time"
#do some stuff
if [ "cool stuff happened" ] ; then 
  #do some other stuff
  echo "progress:10"
  # do some more other stuff
  echo "progress:20"
  ...
fi
echo"progress:reset-to-indeterminate"
done

Thanks,

Andrew

Andrew MacKenzie
Bretford Manufacturing Inc | andrewmac@xxxxxxxxxxxx | 630.201.2499 mobile

Other related posts:

  • » [platypus-dev] Reset progress bar back to indeterminate - Andrew MacKenzie