문제

I have a simple script that will send out a bunch of emails but these take time to send and I want to show the user a scrolling window with the emails addresses as they are sent (or, a progress bar would be good too). I believe this is possible with the new User Interface Classes, but I can't get it to work. The documentation is kinda sparse.

Specifically, the problem is that the GUI window that pops up appears blank until all the emails have been sent (the script ends) and then the text appears. This happens even if I call show(myapp) after every time I update the Label.

도움이 되었습니까?

해결책 2

Currently, the answer appears to be, "you can't".

The best I can do is change a cell in the spreadsheet but even that completely fails (the cell only gets updated once, at the end) when sending emails.

Will update as things change...

다른 팁

You can try it with popup window:

// The code below shows a popup that disappears in 3 seconds
SpreadsheetApp.getActiveSpreadsheet().toast("Hello", "world?", 3);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top