I can read the value of a pop menu using this script but cannot set the value
tell application "System Events"
tell process "App"
set myOptionOne to get value of pop up button 1 of group 3 of group 2 of scroll area 1 of group 3 of window 1
end tell
end tell
I tried
set myOptionOne to set value of pop up button 1 of group 3 of group 2 of scroll area 1 of group 3 of window 1
but having an error
I would rather be able to set the option without using keystroke.
I have an alternative script but again for clicking instead setting a value
set uiScript to "click menu item \"~ Other\" of menu 1 of pop up button 2 of group 2 of group 2 of scroll area 1 of group 3 of window 1 of application process \"App\""