Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
User interface 有没有可能找到另一个人';谷歌应用程序脚本中的用户界面?_User Interface_Google Apps Script - Fatal编程技术网

User interface 有没有可能找到另一个人';谷歌应用程序脚本中的用户界面?

User interface 有没有可能找到另一个人';谷歌应用程序脚本中的用户界面?,user-interface,google-apps-script,User Interface,Google Apps Script,在Google应用程序脚本中,当您使用属性:DocumentApp.getUi()时,它会获取使用它的人的UI。如果您使用了DocumentApp.getUi().alert(),那么它将向使用脚本的人发送警报。我想知道是否有一种方法可以在GoogleApps脚本中提醒另一个人的UI,而不是提醒正在使用该脚本的人。下面是我的代码示例: DocumentApp.getActiveDocument() .removeViewer(userName.getResponseText(

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

DocumentApp.getActiveDocument()
          .removeViewer(userName.getResponseText())
          .removeEditor(userName.getResponseText());

DocumentApp.getUi()
          .alert("Your access is being removed.")

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

除了调用该功能的浏览器外,无法访问任何浏览器的UI。这也是为什么时间驱动触发器不能显示UI模态(它们在非本地执行)。

因此,您想要的是,例如,如果我正在查看文档,您会收到UI警报?是的。我在网上找不到任何东西,有可能吗?