Here's my situation:
My application acceses a csv file during the job run. However the same file can be accessed by business users at the same time. If that happens, my application has to send out an email notification to the user. I can integrate the script file with my application, which in turn can send an email notice.