I'm looking for an answer to this exact question. I'm writing a script that i want to trigger on file creation to create hardlinks/manage my photo collection, I can write around this, but having a simple script run to create hardlinks for each image would be a lot easier than building a script to monitor and have conditions for when it can run.