I must admit that from Ovid's post, I did not know that a script had to check to see if the file is locked
I thought it was automatic that a file was actually locked and that the interpreter checked to see if the file had been locked.
How, then, can I check to see if a file is locked?