On the Macintosh, the Finder can trigger a script due to any change
of a file in a directory (Apple calls these Folder Actions). I was
tempted to try and learn enough of this so I could rsync
all local
file changes to a system in the lab....
Seemed easier for me to just modify Emacs.