Problems with Safari, tabs, radio buttons, etc.
1. GUI scripting. Use Safari's menus to navigate through tabs. For some reason this works somewhat randomly, sometimes getting all tabs and sometimes one tab per window. I can get it working in an awkward way that removes all windows before opening a new one: not exactly what I want to do.
2. I have found this one browsing for solutions on the web, and it uses the System Events app. It seems that Safari tabs are "radio buttons". However, the number of radio buttons returned is always 0. Also, reading the URL with the line
value of text field 1 of group 1 of splitter group 1 of window 1
does not work (returns NSReceiverEvaluationScriptError: 4).
So, does anyone have any ideas on what goes wrong? (or even better, does anyone have a script that works?)
Mac mini Core Duo Mac OS X (10.4.7)