ID2021 scripting: Idle task falls silent
Hi all!
I am trying to implement IdleTask in a startup script to automatically run short scripts after checking some DOM properties.
This decision was made because events on page items do not work.
The still empty ON_IDLE event handler function fires several times and falls silent after a while ... (event handler contains only an alert ).
I've tried changing the restart time between .5 --- 10 seconds, and the lower the number was set, the longer the script stayed working. If the sleep time is set to 10 seconds, the event appears 3---5 times.
As a result, IdleTask freezes after about 2---3 minutes, even if the user is not working. IdleTask remains valid, but there are no more ON_IDLE events.
I did not launch any other IdleTask or scripts, InDesign remains fully functional.
I would like the event handler script to be restarted without interruption (except for the user work time).
Why is this happening and is it possible to somehow customize it?
Another question is: If several IdleTasks are running, will they be executed sequentially or concurrently?
