title: Setting a Popup Buttons Value from Applescript
body: <p>I'm trying to set an external applications settings with an applescript. I currently have</p>
  
  <pre><code>tell application "System Events"
       tell process "Pro Tools"
           click menu item "Save Copy In..." of menu "File" of menu bar 1
           tell pop up button 4 of window "Save Copy In..."
               click
               set value to "AIFF"
           end tell
        end tell
   end tell
  </code></pre>
  
  <p>But nothing happens at the <code>set value</code> point. Any help would be gratefully received! Attached is a screenshot of where I'm stuck at.</p>
  
  <p><a href="https://i.stack.imgur.com/oBrpr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oBrpr.png" alt="enter image description here"></a></p>