Notifications
Clear all
[Closed] Find out if other app is accessing file
Mar 02, 2016 10:43 am
I’ve run into an issue where one of my scripts is trying to read a file (via openFile) at the same time another app is trying to write to it. This of course locks out the other program, which is a big problem.
Is there any way to find out if a file is being accessed / written to by another program so my script doesn’t try to open it at the same time?
2 Replies
1 Reply
Mar 02, 2016 10:43 am
Maybe before trying to open the file check to see if the file size is changing. If so wait and check again.