help getting pop up button title

Hi,

How does one get the value of the title of a pop up button using applescript?

for example, if you open printing preferences, you would see the pop up button labeled paper size and the title is “A4”

I would like to store the value “A4” in a variable. How do i do this? Thanks.

Have you tried anything?

such as
set theTitle to title of button “myPopup” of window 1

yep.

i got the solution, thanks for the reply.

:slight_smile: