Either you do not have edit access to that spreadsheet or you have not added that permission to your script.
Run it manually and when it asked you to authorize it, do the authorization required to allow it to 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/a3f03fd2-efd0-4735-84d7-03fe4f030a96n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/b9d481c6-d179-4c6a-ad70-57ee3f8839f1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/b9d481c6-d179-4c6a-ad70-57ee3f8839f1n%40googlegroups.com.