I have made a few Mac daemons in the past. They either run at launch or run at a specific time interval, for example, once every hour.
I would like to know if it's possible to run a program on an event. Particularly, I would like the script to be executed when a specific file on the hard drive is edited.
Looking up the guides on launchd, I can't find any mention of anything like this. I'm guessing I just don't know the right wording for what this is called. Or perhaps this isn't possible?
Could anyone please give me some pointers as to how to get started with something like this?