I'm writing a CEP panel from which a complicated, multi-step script can be launched. I've been toying with the idea of implementing a progress bar during the script runtime so that users can get an idea of how long they have to wait for the script to finish.
But I can't find a way to have Illustrator send any kind of message back to the panel without stopping the whole script.
The best I've come up with is calling the application.redraw() method periodically throughout the script so that users can see the document changing as the script runs.
There's also a method 'Application.sendScriptMessage()' in the documentation, but there's no examples of how it works.
Does anyone have any ideas on how to implement a progress bar for a script launched from a CEP panel?