The spreadsheet UI is only available in some cases and not in others. The code actually stops the software execution until you respond to the prompt. So this is not good software to use when you want to run something on a timer-based trigger because you may not be online to respond to the prompt.
As Edward indicated, check what triggers you have turned on and understand how/when this software is being run.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/fe9fb707-4987-462f-83ba-9c86dd866613n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/-5ybw9hEhI4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/003a01d8b58c%24295058d0%247bf10a70%24%40gmail.com.