codeliftsleep
Board Regular
- Joined
- Apr 14, 2017
- Messages
- 103
I am attempting to fully automate some processes overnight, but this is the one thing causing some issues right now.
I have found a solution to automating the Classification system my company employs by calling functions that set the mouse position and then click which then allows me to save without a popup coming up asking for the type of file classification.
However, I have a situation where I am saving to the network drive and at various times I get the "Cannot save file---someone else is using it right now" message when I attempt to save it. So I need to know my options here.
I have to save the file successfully before I can continue because I need the information to update the following day's info. I've tried updating the Trust Settings as some people have found helpful but that didn't work for me, still having the issue intermittently.
Is there a way to handle the "failed save" event and then continue attempting to save until it does so successfully(sometimes it takes up to 3 tries, sometimes it does it on the first try). Like set up an error handler to resume at that line if it fails?
I've also read a user who gets the file, immediately saves it to the local drive and then opens that file, works on it and then saves it to the network drive when done which apparently bypasses this issue since the file is not open when it's being saved, but I'd rather not do this if possible.
I have found a solution to automating the Classification system my company employs by calling functions that set the mouse position and then click which then allows me to save without a popup coming up asking for the type of file classification.
However, I have a situation where I am saving to the network drive and at various times I get the "Cannot save file---someone else is using it right now" message when I attempt to save it. So I need to know my options here.
I have to save the file successfully before I can continue because I need the information to update the following day's info. I've tried updating the Trust Settings as some people have found helpful but that didn't work for me, still having the issue intermittently.
Is there a way to handle the "failed save" event and then continue attempting to save until it does so successfully(sometimes it takes up to 3 tries, sometimes it does it on the first try). Like set up an error handler to resume at that line if it fails?
I've also read a user who gets the file, immediately saves it to the local drive and then opens that file, works on it and then saves it to the network drive when done which apparently bypasses this issue since the file is not open when it's being saved, but I'd rather not do this if possible.
Last edited: