Applescript Built In Progress Indicator Not Working Properly
I'm having this odd problem with the new built in progress indicator in applescript. What makes it worse, is how poorly documented everything applescript is these days. I don't know if everyone else is having problems like this too, or not? I assume I'm using the code properly but even that is just a guess.
So the main problem is that I'm trying to use "set progress additional description" to set the 'subtitle' of the progress window. When I do this, it updates but not until after the commands that are after the update are completed. It makes no sense. Here is a test script I made that illustrates it pretty well. First look at the code and see when you expect the page to be updated. Then run the script as an applet and see when it actually gets updated. Grrr!!!
on run
set progress description to "Resizing NetBoot Image Volume..."
set progress total steps to 6
set progress additional description to "Step 1"
say "Performing step 1, this may take a few seconds"
set progress completed steps to 1
set progress additional description to "Step 2"
say "Performing step 2, this may take a few seconds"
set progress completed steps to 2
set progress additional description to "Step 3"
say "Performing step 3, this may take a few seconds"
set progress completed steps to 3
set progress additional description to "Step 4"
say "Performing step 4, this may take a few seconds"
set progress completed steps to 4
set progress additional description to "Step 5"
say "Performing step 5, this may take a few seconds"
set progress completed steps to 5
set progress additional description to "Step 6"
say "Performing step 6, this may take a few seconds"
set progress completed steps to 6
set progress additional description to "Completed"
display dialog "NetBoot Image Volume Resizing Complete" buttons {"OK"} default button 1
end run
Mac mini, OS X Yosemite (10.10.5), null