Is it possible to work with scripts in the same way you can work with Docs, Spreadsheets, and Forms? For example, copying a Document using DocsList.getFileById(fileId).makeCopy and then editing the copy with DocumentApp.openById(fileId).getBody.replaceText.
When you copy the file as mentioned above, it will also create a copy of the associated script. However, there doesn't seem to be an equivalent of ScriptApp...replaceText (there is a ScriptApp, but it serves different purposes). Is there any way to programmatically edit a script?
I am looking for a solution where users can run a script that will copy my script and customize it based on some input they provide to my script.