I've done a lot of research and even found this question asked on another website, but no answers have been found. Has anyone been able to create a non-blocking timer? Something not involving $.sleep(), as that is blocking. I've tried app.scheduleTask(), but had issues with it not seeing any of my objects or variables when it runs within a dockable script. Perhaps I'm misunderstanding the use of it, but maybe someone can shed some light on it. The base goal is to have a progress bar update, but not via a loop of any kind. I am checking a system folder for files and as the folder gets more files I want the progress bar to update accordingly. A simple function is being used and just needs to be launched on an interval basis to process the folder. Appreciate any help.
↧