本文介绍了找到一个Google Apps脚本来终止它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试Google脚本。我只是复制示例中的代码以使用Google脚本创建Google文档,并且我忘记删除该脚本。现在问题是脚本给我发了很多电子邮件并在我的账户上创建了文档。 解决方案请参阅 Issue 4096 ,要求提供管理和搜索独立和容器的方法绑定脚本。如果没有谷歌支持在容器绑定脚本中进行搜索,您必须求助于逐个查找您的神秘功能。 b 脚本必须具有基于时间的触发器(如果它的行为如此)。您可以在以下类似问题中找到帮助: 已删除的脚本继续运行 如何删除谷歌应用程序脚本服务 p> Google脚本运行垃圾文档 选项1 - 禁用触发功能 在脚本编辑器中,您可以禁用任何触发任何脚本。 转至 https://script.google.com/ ,它将打开脚本编辑器。您可以关闭开始启动画面,而无需选择脚本类型。 选择资源 - 所有触发器...。你会被提示保存这个新的脚本文件 - 做到这一点,并继续。 一个对话框将打开显示你所有的触发器。在你的情况下,应该只是你正在尝试的样本中的一个。 单击触发器旁边的小这会导致你的悲伤,并且会被禁用。 退出并删除本练习中创建的脚本文件。 > 选项2 - 查找脚本文件&关闭它 由于您最近创建了该脚本,因此它所在的文件将靠近文档列表的顶部,如果按照最近的第一个日期按日期排序。 在Google云端硬盘用户界面中,选择左侧导航列表中的更多 - 所有项目。这将显示您的所有文件。现在单击最后修改列标题,以便最近的文档位于最上方。其中一个包含您的脚本。 打开该脚本文件,禁用触发器功能(类似于选项1,但使用此脚本的触发器...),然后退出。 选项2.1 您可以看到您在安全部分列出的所有授权脚本我的帐户。 链接 这的列表比您在Google云端硬盘上看到的列表短,因为它只包含脚本。请注意,列出的是脚本项目的名称,而不是容器文档。 (这是将您的脚本项目命名为与文档相同的一个很好的理由。) 点击列出的应用程序,您可以看到详细信息,包括授权日期,帮助缩小搜索范围。 授权脚本,让我们假设您已经能够识别一些可能的容器文档。您现在需要在Google云端硬盘中打开这些文档,打开脚本编辑器以确定是否找到了罪魁祸首,然后手动禁用该触发器。 警告 h3> 请小心删除其中包含活动触发器的脚本文件 - 其他人在过去遇到问题。对于某些人来说,清空Google Drive中的垃圾并不会阻止脚本触发。 I was trying Google script. I just copy a code from a example to create Google docs using Google script and I forgot to delete that script. Now problem is script is sending me a lots of emails and creating docs on my account. I am not able to find out the script to delete it for me. 解决方案 See Issue 4096, requesting a "Means to manage and search over standalone and container-bound scripts". Without support from Google to enable searching within container-bound scripts, you must resort to seeking out your mystery function document-by-document.The script must have a time-based trigger, if it's behaving that way. You may find help in one of these similar questions:deleted script keeps runningHow to delete a google apps script serviceGoogle scripts run for trashed documentsOption 1 - disable the trigger functionFrom the Script Editor, you can disable any trigger on any script.Go to https://script.google.com/, which will open the script editor. You can just close the opening splash screen, without selecting a script type.Select "Resources - All your triggers...". You will be prompted to save this new script file - do that and continue.A dialog will open showing all your triggers. In your case, there should be just the one from the sample you were trying.Click the little next to the trigger that's causing you grief, and it will be disabled.Exit, and delete the script file that was created in this exercise.Option 2 - find script file & disable itSince you recently created the script, the file it's in will be near the top of your document list, if sorted by date with most recent first.In the Google Drive UI, select "More - All items" on the left-side navigation list. This will display all your documents. Now click the "LAST MODIFIED" column header so that the most recent documents are at the top. One of those contains your script.Open that script file, disable the trigger function (similar to Option 1, but use "This script's triggers..."), then exit.Option 2.1You can see all scripts you've authorized listed in the "security" section of "My Account". LinkThis may be a shorter list than you see on your Google Drive, as it will only include scripts. Note though, that what is listed is the name of the script project, not the container document. (That's a good reason to name your script projects the same as the document.)By clicking on a listed app, you can see details including the authorization date, which may help you narrow your search.With the name of an authorized script, let's assume that you've been been able to identify a few possible container documents. You now need to open those documents in Google Drive, open the Script Editor to determine if you've found the culprit, and then manually disable the trigger.WarningBe careful about deleting script files that have active triggers in them - others have had problems with that in past. For some, emptying the trash in Google Drive did not stop scripts from triggering. 这篇关于找到一个Google Apps脚本来终止它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!