Angelo
Angelo

Reputation: 1656

Google Scripts in Spreadsheet

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.

Upvotes: 1

Views: 253

Answers (3)

Mario Zamora
Mario Zamora

Reputation: 119

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.

Upvotes: 1

Mogsdad
Mogsdad

Reputation: 45710

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.

Upvotes: 1

Here's the Google spreadsheet developer guide.

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

Upvotes: -1

Related Questions