I’m trying to write AppleScript UI Script code to work with drop down menus. The ones you click and select an item, such as the web forms you see where you click and select a state.
I can’t seem to figure out how to click and select a specific item in the menus.
Right now I’m having troubles with the pop-up button.
I’m able to get the current value by using “get value of (reference to the item)”, but I can’t seem to set the value of the item using the "set value of " construct.
I notice that there is a sub menu object that’ll exist briefly when I click on the pop-up button, but saying, “click (reference to the menu item)” doesn’t seem to work. I get a NSScriptError 4.