Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以以编程方式创建一个全新的谷歌应用程序脚本并将他附加到特定的谷歌文档?
或者以任何其他方式,制作 1 个绑定脚本并制作几个谷歌文档以将他作为同一个绑定脚本共享?
是的。可以通过 API。
使用 project.create。您可以提供项目标题。您还可以通过提供 Google Doc、Sheet、Form 或 Slides 文件的 Google Drive ID 作为脚本的父级来创建绑定脚本。
clasp 是一个开源工具,独立于 Apps 脚本平台,可让您从终端而不是 Apps 脚本编辑器开发和管理 Apps 脚本项目。