First I've fixed a major problem in file.synchTableWithFolder, won't release it until tomorrow. Earlier versions didn't work well with scalars because timeModified verb doesn't work with scalars. T
he problem was the type "code" is a scalar, and that's what we were working with. So the contents of the Macros folder was loaded every ten seconds whether or not there were any changes. We now keep a cache at system.temp.fileSynchCache, with an entry for each scalar we're managing, indexed by its file path, with a value of the last time it was loaded.
This way if the file changes, we reload it, but otherwise we have a reliable mod date for the scalar.
To prove that the new code works, here's a pic of Ru Paul's mouth, as viewed through the frameIt macro.
7:59:51 PM
|