是否可以在Google Apps Script中获取其他人的UI?



在Google Apps Script中使用属性时:DocumentApp.getUi(),它会获取使用它的人的UI。如果您使用了DocumentApp.getUi().alert(),那么它将向使用该脚本的人员发送警报。我想知道是否有一种方法可以在Google Apps Script中提醒另一个人的UI,而不是使用该脚本的人。这是我的代码示例:

DocumentApp.getActiveDocument()
.removeViewer(userName.getResponseText())
.removeEditor(userName.getResponseText());
DocumentApp.getUi()
.alert("Your access is being removed.")

现在这将是美妙的,想象一下如果可能的话所有的可能性!有人请帮忙!

除了调用函数的浏览器之外,无法访问任何浏览器的 UI。这也是时间驱动的触发器无法显示 UI 模态(它们以非本地方式执行(的原因。

相关内容

最新更新