Can Force unlock be included in a Script?

2 posts / 0 new
Last post
timuinga
Offline
Joined: 08/05/2020 - 03:37
Can Force unlock be included in a Script?

I have a script that first backs up prior idea files before it creates new ones. Some files though are locked and even if I use an error handler, the script still brings up an error prompt. Is there a way to force unlock using the idea script or suppress this error message?

Brian Element's picture
Brian Element
Offline
Joined: 07/11/2012 - 19:57
There is no way that I know of to use the force unlock in a script.

I don't have any files to test this out on but you can try the ignore warning to see if that might work even thought I doubt it would in this scenario, but you never know. Add this line at the beginning of your script.

IgnoreWarning(True)

Let me know if that does work.