In our solution we open google docs editor for our users with some text to edit. They need certain functionality contained in the apps-script we have created. But we can't get that script into document automatically.
Some people suggested creating a document with the script and then copy it to new documents.
It is not possible unless you add the script to each document manually. For documents that are created henceforth, you can have a template document (the template doc has the script) and make a copy of it instead of creating a new document.
But this is not possible with public documents. Each user has to copy first document manually.
So is it possible to inject this script into that google docs document automatically?