Is there a way to monitor if a file has changed? I'm working on a script and would like to update the tab label if a particular file has changed.
No, not currently. You could have an external tool that detected the change and ran a script command that then triggered the update, but I can't think of a better way to have a script trigger immediately on file changes.
You could perhaps use the Dialog.SetTimer
and check file modification time.
See Jon's example.
FSUtil.ReadDir
to get the Items
and then compare last known .modify
or .modify_utc
of item of interest.
Thanks, guys. I'll check out the example!