Download Appliction and Source Code 144Kb (27 October 2007)
Here is some sample code demonstrating how the new FSEvents API works in Leopard
On the plus side:
Each event has a unique ID
The events are stored on the disk in a log, i.e. in theory you can search and replay the events!
On the minus side:
It only really provides directory changed, and volume mount/unmount messages
It doesn't say when the event occurred, the ID simply implies an order
It will only provides events about directories the user has access to (security)
Meanwhile, the low-level fsevent support still does work in Leopard - and so fseventer
will be updated soon has been updated (v2.1 14Jan08) to support this.