popup button in tab view not working.

I have a tab view with a popup button, however, I am not able to get any response from it.

on choose menu item theObject	
	set theCurrentValue to title of popup button "popup" of tab view item "tabwin" of tab view "tabview" of window "main"
	display dialog (theCurrentValue)
end choose menu item

Any idea on what’s wrong with the syntax?

Thank you.

I found the correct syntax :slight_smile:


on choose menu item theObject
tell view of tab view item "tabwin" of tab view "tabview" of window "main"
		set theCurrentValue to title of current menu item of popup button "popup"
end tell
end choose menu item