Skip to main content

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 Wed, 10/28/2020 - 05:53
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.