google-apps-script - Google Apps 脚本 : Get the ID of script bound to a spreadsheet

标签 google-apps-script

我想编写一个 Google Apps 脚本来生成绑定(bind)到某些电子表格的脚本的 ID 列表。

我找不到通过 GAS 以编程方式获取绑定(bind)脚本的 ID 的方法。

  • 如果我有 spreadsheet 对象,我有像 getId 这样的方法获取电子表格的 ID,但不获取有界脚本。
  • 使用 DriveApp,我可以找到使用 DriveApp.getFilesByType('application/vnd.google-apps.script') 的独立脚本但不是绑定(bind)的!

  • 有什么建议么?

    最佳答案

    不幸的是(根据我自己的研究)这目前是不可能的。多年来,我一直想以编程方式识别和访问绑定(bind)脚本,我定期研究它,我总是空手而归。

    还没有找到任何关于这个主题的明确的谷歌文档,仍然希望这个漏洞最终能被填补。

    关于google-apps-script - Google Apps 脚本 : Get the ID of script bound to a spreadsheet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54990478/

    相关文章:

    image-processing - 如何在没有图像库的情况下转换或操作存储为 blob 的 JPEG

    google-apps-script - Google App Script 中的线程

    c# - 如何上传 Excel 文件并以编程方式将其转换为 Google 电子表格?

    google-apps-script - Google Apps 脚本文本轮换

    javascript - Google Apps 脚本返回 null

    google-apps-script - 通过 GAS 向自己发送电子邮件保留在 gmail 发件箱中,而不是在收件箱中

    javascript - 谷歌应用程序脚本类型错误: Cannot call method "substring" of undefined

    google-apps-script - 我如何获得法语区域的日期

    javascript - 在 Google Apps 脚本网络应用程序中动态插入脚本?

    google-apps-script - 从 Google 表格通过电子邮件发送最后一行 - 添加数据时自动查找新的最后一行