title: How do I call a installed onOpen() trigger?
body: <p>I have a doubt in how to implement (and call) an installable <code>onOpen()</code> trigger. I tried the method bellow, but it didn't work. What I'm doing wrong?
  Thanks for any help!</p>
  
  <pre><code>  var ss = SpreadsheetApp.getActiveSpreadsheet();
  
    var myOnEdit = ScriptApp.newTrigger("installedOnOpen")
                             .forSpreadsheet(ss.getId())
                             .onOpen()
                             .create();    
  
  function installedOnOpen() {
    var menuEntries = [
                       {name: My function menu name", functionName: "someFunction"}
                      ];
    ss.addMenu("My personalized menu", menuEntries);
  }
  </code></pre>