title: Clicking button using Apple Script
body: <p>I want to add some details to an UI application from an Apple script.
  But i cannot click the "New" button in UI from script.</p>
  
  <pre><code>tell application "System Events" to tell process "Microsoft Remote Desktop"
      --click button 1 of group 1 of toolbar 1 of window 1
      click button "New" of group 1 of toolbar 1 of window 1
  end tell
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/o9LGv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o9LGv.png" alt="mstsc"></a></p>
  
  <p>Accessibility Inspector</p>
  
  <p><a href="https://i.stack.imgur.com/C5Eko.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C5Eko.png" alt="enter image description here"></a></p>