title: Applescript getting elements
body: <p><a href="https://stackoverflow.com/questions/11700006/applescript-api-documentation">This SO answer</a> pointed me a bit further in scripting the change of screen resolution on the new MacBook Retina. I'm stuck here:</p>
  
  <p><img src="https://i.stack.imgur.com/xU5Lt.png" alt="enter image description here"></p>
  
  <p>I can arrive to this pane with this script:</p>
  
  <pre><code>tell application "System Preferences"
      activate
      set the current pane to pane id "com.apple.preference.displays"
      reveal anchor "displaysDisplayTab" of current pane
      get elements of current pane
      tell application "System Events"
  
      end tell
      --get the name of every anchor of current pane
  end tell
  </code></pre>
  
  <p>But how to know how to select bits if this pane contents? How to refer to the "Scale" radio button, for instance, and select one of the 5 possible resolutions? Thanks</p>