0
我有一個腳本,我從谷歌文檔的菜單運行。它基本上像這樣的功能:https://webapps.stackexchange.com/questions/47173/how-to-automatically-open-a-created-text-document-after-it-being-created/47649#47649。彈出框與鏈接到其他谷歌文檔在谷歌文檔
我想要一個類似於上面的鏈接中的函數,除了帶有鏈接的彈出窗口顯示在谷歌文檔而不是谷歌電子表格中。我的腳本部分看起來像這樣(標題和網址定義在該部分之上):
var docnew = DocumentApp.getActiveDocument();
var app = UiApp.createApplication().setTitle("Open Doc")
.setHeight(50).setWidth(400);
var vPanel = app.createVerticalPanel().add(app.createAnchor(title, url));
app.add(vPanel);
docnew.show(app);
然後我得到以下錯誤。 「TypeError:Objekt Document nicht gefunden中的Funktion show」,這是德語,意思是「TypeError:在對象文檔中找不到函數」。
有人可以幫助我嗎?
非常感謝。
最佳,
菲爾
這就像一個魅力。非常感謝你! – user1582830 2014-10-10 19:36:41