Create a new Apps Script file Get the file ID of the new Apps Script file Get the files content of the new Apps Script file Modify the files content with new content Overwrite the new (existing) Apps ...