Mic*_*lor 3 google-apps-script
是否可以关闭在Apps脚本中打开的UI窗口?
我认为答案是不对的:http://code.google.com/p/google-apps-script-issues/issues/detail?id = 474&can = 1&q =.close%28%29&cospec = Stors%20Opened%20ID %20Type%20Status%20Summary%20Component%20Owner
但我想知道是否还有其他意见.
我有一个弹出的"等待窗口",我希望在活动结束时关闭.
var app = UiApp.getActiveApplication();
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = getSheetWithSubmissions(ss);
// create UI app, this works fine
app = createWaitPleaseUI(sheet);
ss.show(app);
//simulated activity
Utilities.sleep(5000);
//this doesn't work despite being in the documentation
app.close();
Run Code Online (Sandbox Code Playgroud)
认为这是不可能的,但希望谷歌如果无法完成,就会从文档中删除它.
作为一种解决方法,我可以调出第二个GUI,说"工作完成,单击确定"然后它工作正常.
归档时间: |
|
查看次数: |
8185 次 |
最近记录: |