[Bug Repot] thermometer (progress bar) produces error when trying to change its value (i.e. progress the bar)
The error is:
GeneralError: Operation failed. Thermometer.value:1:Console undefined:Exec
// Define the progress bar (thermometer) as a variable for easy reference var t = app.thermometer; // Start a progress bar t.begin(); // Now start another progress bar t.begin(); // Now end the top progress bar t.end(); // Now try to set the incremental value of the progress bar t.value = 1; // See the error
> Zachary Haber commented · September 6, 2022 11:12 AM
> I'm not getting the error message in 22.002.20191.0 (x64) Windows.
That makes sense, as this issue was fixed in February 2021, see the other comments by the Adobe developers.
> The current behavior is just confusing.
I totally agree, it makes no sense. I ended up writing my own function for keeping track of the different progress bars without having to start multiple.
Zachary Soare commented
I'm not getting the error message in 22.002.20191.0 (x64) Windows.
But is it supposed to act as multiple thermometers when you call `thermometer.begin()` multiple times? Because for example, if you start a thermometer twice, you never get back to the "original" thermometer you started. With the current behavior I'd actually expect that the `t.end()` statement should close the thermometer in general, or it should restore the previous values before `thermometer.begin()` was called a second time. The current behavior is just confusing.
// Define the progress bar (thermometer) as a variable for easy reference
var t = app.thermometer;
// Start a progress bar
t.text = 'Therm Level 0'
t.duration = 50;
t.value = 1;
// Now start another progress bar
t.text = 'Therm Level 1'
t.duration = 100;
t.value = 90;
// Now end the top progress bar
// Now see that the progress set on the original thermometer are overridden,
// But we still see the thermometer
Hope you are doing well and sorry for the trouble you had.
Please try installing the latest available version of https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/continuous/dccontinuousfeb2021qfe3.html#dccontinuousfebtwentytwentyoneqfe3.
You can also update from the Help menu>Check for updates.
Reboot the machine and check.
Let us know if you still get the same error message with the latest version.
We have informed our engineering teams regarding this issue and we will let you know once the bug has been fixed.