title: How to set sheet protected during google script running
body: <p>This question is about Google spreadsheet. I have a spreadsheet that shares with multiple people. I'm using a script to update the sheet contents as the well. 
  My question is when I running the script, is there a way to protect the sheet against others to edit it. And when the script done, editing permission can be granted back to users again?</p>