On Windows, MS provides the ReadDirectoryChangesW and FindFirstChangeNotification API programs for working with a new or modified file, does Mac OSX support equal functionality?
On Mac OS X Leopard, track file changes using the File System Events API
See http://pypi.python.org/pypi/MacFSEvents/0.2.1 for a Python implementation.
OS X FSEvents, .