WatchTab event for item count changes

Hi.
I’m wondering if there’s a way to hook into an event from Dialog.WatchTab() that triggers whenever a tab’s item count changes, no matter the reason (add, remove, folder expand, etc.). Currently I work around it with a timer checking the value on the Tab object itself, but that’s not ideal and can cause extra unnecessary processing.

That sounds interesting.
But maybe there's another alternative. I use DO's Preferences > Label Assignments (Labels) feature with a filter set to "Date/Time Match Created date within 30 seconds, specific for files (could be folders too), and with a label to be assigned to the file when there's a match. (I named the label "recent")

Like this:

The label highlights now file very visibly, and I use it to find just downloaded files quickly. In addition, within the Label Definitions section, I could also enable the option "Pin to top" - and if I set the time higher (like, 10 minutes) that would make it almost impossible to miss them.

Of course, this is not what you were talking about, but it certainly is a trigger mechanism that works in the current tab. Maybe it inspires minds more brilliant than me to do more with it.

I don't think the topic of this thread is even remotely related to what you mentioned. :smiley:
Fwiw, the post is about whether Dialog.WatchTab could trigger an event whenever the item count changes.

@errante You're probably right, and I'm certainly not addressing Dialog.WatchTab. But the Label Assignments function is definitely also a active monitoring system, and I was thinking of using multiple checks in the filter. One that may come closer to it would be to include in the filter a check on the Size attribute of the folder to monitor.