I've built a Google Script which runs when my Spreadsheet is edited:
function onEdit(event)
{
Browser.msgBox(event.source);
general(event);
}
When my function is named onEdit(), the Browser.msgBox returns "Spreadsheet" (so the source is defined) When my function is named othername(), the Browser.msgBox retunrs "undefined".
I execute the script with the same user, the script runs when my Spreadsheet is edited and i don't change anything else than the name of the function.
Thanks.