一个Google Apps脚本被许多文档引用 [英] One Google Apps Script referenced by many documents

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

问题描述

我通过驻留在Google文档中的Google Apps脚本创建了一个脚本。我使用该文档作为模板对象,然后将其复制到许多Google文档中,我使用这些脚本函数。

问题是,无论何时编辑Master Script,所有子文档有一个过时的脚本,必须手动更新。



有没有一种方法可以在模板中引用基础主脚本文件,从而在该模板中的所有子文档?似乎只有这样做的唯一方法是创建一个附加组件,但这似乎无法解决持续更新脚本的需要。

解决方案

附加组件提供自动更新功能。我会走这条路。此外,如果您愿意,您可以选择只发布给自己。



至于您关于重新发布的问题,您可以更新已发布的加载项。


I have created a script through Google Apps Script that resides in a Google Document. I use that document as a template object, which is then copied into many Google Documents where I use those script functions.

Problem is, whenever I edit that Master Script, all the child documents have an outdated script that must be updated manually.

Is there a way to have a base master script file that I can reference in the template, and thus in all the child documents from that template? Seems like the only ways to do this are to create an Add-On, but that wouldn't seem to resolve the need for constant updating of the script.

解决方案

Add-ons do provide auto-update functionality. I'd go down that route. Additionally, you can choose to only publish to yourself if you wish.

As for your question about republishing, you can update your published add-ons.

这篇关于一个Google Apps脚本被许多文档引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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