Search code examples
google-apps-scriptgoogle-docs

Do Google Apps Scripts have a Copy URL?


I'm wondering if there is a way to share a link to a Google Apps Script file that forces users to make a copy of it? Using Google Docs, you can append /copy to the url. For example:

https://docs.google.com/document/d/19yoQ71RcqNsYgPmZHzw96G_QH05hC20sWxk_ktahpXY/copy

This will force users to make a copy of the original document. I've been trying to do something similiar with a Google Apps Script file.

I've tried appending copy to the URL like this but it doesn't seem to work. As a potential work around, I could just use embedded scripts and share the Sheet/Doc/Form.

Anyone know of a URL parameter to force copying of a Google Apps Script file?


Solution

  • You can use this format to quickly make a copy of any public Google Script.

    https://script.google.com/d/SCRIPT_ID/edit?newcopy=true

    See example.