Thursday, September 8, 2005

list of files that applications use


I was interested in getting a list of files that a Mac OS X application attempted to access.  One of my friends gave me the hint that I could use the fs_usage command line tool.  I was able to get this to work, with these commands



sudo fs_usage |grep appName



I run this command before launching the application, and then you can get a complete list of the files.