title: AppleScript: How to activate menu items that only appear with option-down key (w/o shortcut)
body: <p>I really looked up and down lots of questions, here and at "AskDifferent", but could not find a valid answer to this fundamental question:</p>
  
  <p><strong><em>HOW do you "activate" programatically a menu item that's only visible when the option key is depressed and that hasn't got a shortcut of its own ?</em></strong>
  <br>
  I know how to use:   </p>
  
  <pre><code>click menu item "Save as …" ...  [or:]  perform action of menu item "..." ...
  </code></pre>
  
  <p>... quite well.<br>
  I've also learned about previously-set commands like:</p>
  
  <pre><code>key down option    [or:]  keystroke "whatever" using option down
  </code></pre>
  
  <p>But <strong><em>none of these</em></strong> will perform a simple click on a menu item <strong><em>that "regularly" isn't visible</em></strong>.   </p>
  
  <p><br>
  Admitted, using an existing shortcut like "option shift command s" will "Save as …" as expected:</p>
  
  <pre><code>keystroke "s" using {option down, shift down, command down}
  </code></pre>
  
  <p><br><br>
  <em>(Farther down I was proven wrong by <strong>pbell</strong>; so here is my latest "simplified" solution:</em>    </p>
  
  <pre><code>tell application "System Events" to perform action "AXPress" of menu item ¬
        "Arrange in front" of menu "Window" of menu bar item "Window" of ¬
        menu bar 1 of application process "Script Editor"
  </code></pre>
  
  <p>(As I found out by now, this code will do the exact same thing.) </p>