title: AppleScript or Automator to click on menus in an application?
body: <p>I'm not sure if this is do-able via AppleScript and/or Automator…but I'd like to be able to:</p>
  
  <p><strong>a) launch an application (I know this  can be done pretty easily by AppleScript or Automator)</strong></p>
  
  <p><strong>b) once the application is launched, use AppleScript or Automator to select specific menu items.</strong></p>
  
  <p>e.g. I'd like to launch Excel 2008 (I have the home/student edition which doesn't come preconfigured for Automator) and then click the "File" menu and click on "open".</p>
  
  <p>Any pointers on where to go/look for how to select menu items like this (or if it's even possible at all)?</p>
  
  <p>You can "sort of" do this using Automator's Record function, but Record is very brittle.</p>
  
  <p>I'd rather be able to use AppleScript to simply grab an "array" that contains every menu item for the application and then programmatically click on the 0th menu item in my array…etc. etc.</p>
  
  <p>Is this possible?</p>
  
  <p>TIA</p>