I made a copy of a Google Apps Script project by mistake by choosing File > Make a copy... on Script Editor and since then every time I click Tools > Script Editor... on the Spreadsheet screen the project belongs to, I see a screen showing the two projects (original one and copied one) and I need to choose one to open the script editor. To be worse, the original script became unexecutable since I made the copy, I don't know if this is the cause of that though.
So, I'd like to remove the copy project from the Spreadsheet. How can I do that? I can't find any menu to remove project.
Thanks,
Open the "copy of" version of the script, click File -> Delete Project... This will generate a confirmation box. Click the Delete button to confirm that you would like to delete the project. This should leave your original as the only associated script.
Related
I have a spreadsheet where I first created a bound script file (via Tools->Script Editor). I then (at a later time) was exploring the File menu and hit Make A Copy. I now get a "Select a project to open" with the original "myAddOns" and "Copy of myAddOns" as the choices. I would like to remove the copy. I found it in the scripts My Projects page, but when I try to remove it the original spreadsheet also gets removed. (Pulled it back out of Google Drive Trash folder)
Am I stuck with this?
Thanks!
It turns out that (as the project owner) using the File->Delete Project once I open the Script Editor works. Not sure how I got messed up before.
Turns out that all of us can forget how to do this. Thanks for asking the question. In the new editor, this feature is found in Project Details, then to the far right. Click the Trash Can that warns "Delete Project Forever". Yes, please. Hope this helps someone in the future.
I have two script projects for a spreadsheet. One was a temp one for development testing. I want to delete the temp one. When I click on script editor it shows both projects, and I can select one, but there is no option for deleting.
Also when I open the project itself there is no delete option.
I have seen other SO threads (such as this), but it seems the interface is changed since then.
Attached the screenshots.
Script Editor File menu:
Make sure that you are the owner of the script.
I've tried to replicate your issue in other scripts which I don't own and it seems that I cannot see a Delete Project... option under File menu.
But with my owned script, there is a Delete Project... option. See screenshot.
Here's a reference post: How can I remove a project from a Google Spreadsheet?
UPDATE (based from OP's comment):
You must be the owner of the spreadsheet to show the Delete Project... option.
I have an html dialog for Sheets (container bound dialog) that is used for input and saving of customer data. I made a copy of it for use in a different office, so now I have Worksheet#1 with Script project "Scripts" and Copy of Worksheet#1 with Script project "Copy of Scripts". We've made changes to Scripts so it is no longer the same as Copy of Scripts.
Sometimes Worksheet#1 triggers scripts that are in Copy of Scripts. Not sure why. On these occasions I can open up script editor and it asks which project to open (Scripts or Copy or Scripts) and once I select the right one it behaves properly until the next time this happens.
How can I insure that it always opens the correct project?
You will see this behavior sometimes if you have multiple projects within a script.
Check whether you have multiple projects in one of those sheets.
File > Open...
Here's a spreadsheet-contained script with two projects in it:
Open the project you want to delete.
Delete it.
File > Delete Project...
I've been following the guide found here: https://developers.google.com/apps-script/articles/twitter_tutorial
About creating a twitter app.
I've been looking at the part below:
To get started, copy this spreadsheet containing the script for this tutorial. Once you've got your own copy of the spreadsheet, open it and you will notice the spreadsheet will be empty; that is intentional, as we won't be using any of the spreadsheet's cells in this tutorial.The first thing you need to do is publish your script as a service. To do this, open the script editor by clicking Tools > Script Editor... In the new window, click Publish > Publish as Service...
This doesn't actually work at all.
If I open the spreadsheet and click Tools > Script Editor.. I'm taken to the script wizard. It then give me the option of creating a new script. The script can only be published to gallery, or as a web app. Where is the publish as service option?
Thanks
I checked on the tutorial page and it seems indeed that the template spreadsheet has not script included...
But the full code is still published at the end of the same page so you could copy/paste the full code in the script editor (choose new code from the wizard and delete everything in there ) and start from there.
About the "publish as service" this is the old name of what is now known as deploy as webapp, the procedure is slightly different and is described here, you will need to first save a version (manage version in the file menu) and you will get 2 urls, one for development and one for use, both will run from your browser starting with the doGet() function.
The remaining part of the tutorial about initialisation and authorization from the spreadsheet menu is unchanged, just follow the tutorial instructions.
Hoping it will help you,
A while back I created a "Gmail Snooze" script from this Lifehacker article http://lifehacker.com/5825634/how-to-add-a-snooze-button-to-gmail-no-extensions-required
I'd like to make some edits to it now but I can't find it! When I go into the script editor I have no saved projects to open. Can anyone point me towards a method of finding this script that is running every night so I can edit it?
The File > Open dialog usually only shows you the script projects that are attached to the spreadsheet you have open. If you open the editor directly that menu should show you all the projects you own.