【问题标题】:Can a Google Apps script update a spreadsheet before it terminates?Google Apps 脚本可以在电子表格终止之前更新它吗?
【发布时间】:2016-09-11 01:47:32
【问题描述】:

是否可以在脚本仍在运行时看到由 Apps 脚本对 Google 电子表格所做的更改?

在我看来,如果 Google Apps 脚本对电子表格进行了多次修改,它们都会生效,或者至少它们都(在屏幕上)看起来(在屏幕上)就像它们仅在脚本终止时才生效一样。

【问题讨论】:

  • 您是否尝试过操作,暂停一秒钟,观看屏幕,尝试操作...重复?
  • 试试SpreadsheetApp.flush()

标签: google-apps-script google-spreadsheet-api


【解决方案1】:

Spreadsheetapp.flush() 就是答案。

谢谢桑迪·古德。抱歉,我无法为您的评论投票。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-13
    • 1970-01-01
    • 2018-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多