OK, I’ve written a handler that performs an action on selecting an item in a popup button. I would like this handler to work across windows with different names.
Here’s a code example:
set theObject to popup button "button1" of tab view item "test" of tab view "tabs" of window "mainwindow"
What I would like to do is get the name of the window then set the object as show above. I cannot find a way to get the name of the window returned to me. This seems like it would be pretty easy but I find myself stuck.