Notifications
Clear all

[Closed] Find out if other app is accessing file

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
(@denist)
Joined: 10 months ago

Posts: 0

just try to open file with try/catch.

 PEN

Maybe before trying to open the file check to see if the file size is changing. If so wait and check again.