script to monitor files currently open