google-apps-scriptgoogle-apps-script-editor

How do I unlock "padlocked" Apps script files in Google Apps Script?


I have a script project in which some "padlocked" .gs files are shown. I can't edit or delete them.

I need to use those files, but the person who locked them is unavailable.

I was trying to unlock the files using methods from the class LockService but it doesn't seem to work that way.

How do I "unlock" these files so I can edit them?


Solution

  • I figuered it. The padlock doesn't point to actual files withing this script. There is a library in a standalone script containing these files. When I use debugger it reaches these files from a standalone library and they are shown within the script with a padlock. So padlock simply means that those modules are from a separate script file! So it's not a lock.

    I handled it by creating same modules withing the script and simply renamed few functions. So I am able to use debug for all my route.