I have a folder on my Computer, "Markdown Source" with a folder action applied to it through Automator. The folder action applies a shell script, and then writes output to a different folder, "Markdown Output" (no bonus points for guessing what the script might be).
The problem is that sometimes when I save a file to the "Markdown Source" the script runs, and creates the file in "Markdown Output", but sometimes it does not. This problem seems to happen most frequently if I re-add a file to the folder than has previously been in the folder but was subsequently moved elsewhere.
Does anyone know if there is a way to change how often Folder Actions look for new input, to manually force Folder Actions to run, or some other way to be sure that all the items in my Markdown Source directory get processed?
launchdjob with theWatchPathsdirective on the Markdown Source folder. Since the folder modification time is updated whenever a file is added, removed, or "atomically changed", you could launch your "rebuild all Markdown files" script I suggested earlier automatically with some reliability. This will not work if you use e.g. emacs or vi to edit the source files. – Daniel Beck Jan 5 '12 at 18:00