Python script to automatically perform commands on modified files in OS X