Do you know that this code is error free? Is anything displayed in the console window?
The thermometer object is problematic in a couple of ways. First, your code doesn't increase the increment. This is a small point, but the increment is a redraw prompt for the thermometer. And redrawing is the second problem. The thermometer updates/redraws on free cpu cycles. Unfortunately the JavaScript engine does not allow for many of these, it's a bit of a hog. If your code is too tight the thermometer may never be drawn, or even it it is shown initially it might not update as expected.
If you really want a reliable progress bar, you should create one using form fields and annotations. This is much more reliable than the thermometer.
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often