I know that installable triggers run as the author of the script. But some services, like email service will work only from installable trigger.
I need to use simple trigger to check if current user has access to edit the specific range and installable trigger to send email.
I have code like this:
var MY_VARIABLE;
function onEdit() {
MY_VARIABLE = 'onEdit was here!'
}
function myOnEdit() {
// installable trigger
Browser.msgBox(MY_VARIABLE);
// send email, use email service
}
The result is undefined.
And I'm willing to have 'onEdit was here!'