I'm spawning my own threads to do some task. I monitor thread in the idle task at regular intervals, to see if has been completed or not and get an update. Now my problem is,
I want to postpone Indesign quit until my task has been completed. I prevent a user from quitting by throwing a CAlert, which takes away control from my idle task.
My question is, is there a background task alert (as mention in programming guide ) on page 127 so that I can keep monitoring my threads and close the dialog once the process is complete?
"
Background threads cannot directly report to the user on progress, success, or errors. These are
presented in the Background Tasks panel. Also, an animation appears in the application bar when
background tasks are in progress, and a Background Task Alert might appear when a background task
needs to convey a message to the user.
"
Such a background task appears when a user tries to exit indesign and is self disposed when the task is complete like this. Is there any such API exposed to third party developers?