Google文档脚本每次都需要许可 [英] Google docs scripts asks for permission everytime

查看:104
本文介绍了Google文档脚本每次都需要许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我的问题是我有一个google docs模板,其中包含具有某些自动填充条件的脚本.在您点击使用此模板后,您会得到一个文件,并且每次运行脚本时都要求获得访问权限,以访问google识别您的身份,这基本上就像是在您每次使用以下命令创建新文件时的新应用一样模板.

这是一种设置方法,它不会每次都征求许可吗?

解决方案

如果您的文档中有文档绑定脚本,并且您将复制该文档并运行该脚本,则Google应用程序脚本会要求每个用户许可时间.使用脚本复制文档的行为就好像您已经创建了一个新的脚本文件一样,现在脚本将在首次运行时征求许可.

可能的解决方案

您可以将脚本发布为Google文档附件.如果您不想公开公开它,也可以私下发布该加载项,只有您或您要与之共享的人可以使用.

查看文档

发布插件会将您的插件绑定到Google应用程序的每个文档.

So my question i have a google docs template which has a script with certain autofill criteria. After you click on use this template fine you get a file and when you run the script everytime is asks for permission to access the certain things google needs to identify you, it basically acts like its a new app everytime you create a new file from the template.

Is their a way of setting it won't ask for permission everytime?

解决方案

If you have a document bound script in your document, and if you will make a copy of that document and run the script, google app script will ask permission every time. Copying the document with script acts as if you have created a new script file and now script will ask permission on its first run.

Possible solution

You can publish your script as google document add-on. If you don't want to expose it publicly, you can also publish the add-on privately which only you or someone you will share with, can use.

check out the documentations

Publishing the add-on will bind your add-on to every document for google apps.

这篇关于Google文档脚本每次都需要许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆