1

Is there a way to have a spreadsheet in Google Drive where the script is protected from modification / editing? Does anyone know if that is an option in the Script editor?

Another thing I'd like to ask. How does one do source control for the codes in their Google scripts?

Thanks.

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
Angelo
  • 1,578
  • 3
  • 20
  • 39

3 Answers3

1

WRT privacy / protection of scripts: Refer to the comments and answers on this question: How to protect the Apps Script code in a Google spreadsheet?.

Source Control? See Backing up Gapps source. The version tracking in the script editor is rudimentary, so you should consider doing source control outside - you'll have to get used to copy & paste.

Community
  • 1
  • 1
Mogsdad
  • 44,709
  • 21
  • 151
  • 275
1

No you can't do it.

The script runs with the document permissions.

If you have Edit permissions on the document, you have edit permission on the script too.

Mario Zamora
  • 109
  • 7
-1

Here's the Google spreadsheet developer guide.

https://developers.google.com/apps-script/reference/spreadsheet/

Shankar Narayana Damodaran
  • 68,075
  • 43
  • 96
  • 126
  • 1
    Those are the script reference. But does not provide any guidance on locking the scripts. – Angelo Apr 18 '13 at 16:38