Ok, I think I misunderstood error. I thought that an email would be sent by error.create, but on re-reading the docs I think I have to throw the resulting error object to get an email. So different question: How can I send an email to the script owner? I'd prefer not to have to maintain my own record of the script owner