Use FSEvent (Mac OS X 10.5 or higher) instead of filesystem polling.