user1113883
user1113883

Reputation:

Is it possible to convert a bound script to a standalone script?

I thought by using "Save a Copy" from a bound script, I would create a standalone version.

After I copied the script, I wasn't able to find the script from my Google Drive. Is it possible to do what I'm trying to do?

Upvotes: 5

Views: 1444

Answers (1)

Cameron Roberts
Cameron Roberts

Reputation: 7367

When you "make a copy" of a bound script you end up with two script projects bound to the same container.

As far as I know the only option is to create a new stand alone script from scratch, re-create any files, and copy/paste the contents over manually.

Depending on your goal, another option is to keep the existing script container-bound, but access it as a library from a stand-alone script.

https://developers.google.com/apps-script/guide_libraries

2018 update:

Google now offers an Apps Script API for remote management of Apps Scripts, and the CLASP utility for managing Apps Script from the command line. You can now use these to copy the contents of a container bound apps script and populate a stand-alone script.

https://developers.google.com/apps-script/api/

https://github.com/google/clasp

Upvotes: 5

Related Questions