On 2006-07-10, at 20:27:39, Joe Barwell wrote:
> it would appear I will have to UI-script the whole process from
> start to finish. Where I'm currently stuck is with selecting
> buttons on the dialog windows (i.e. working with the default
> "Untitled.tab" export file):
Hi Joe,
If the app is totally Carbonized, you should be able to get at the
widgets by discovering the hierarchy. For example:
tell window "x"
every ui element
end
Whenever you see a container object (like "group" or "view") then
repeat the process.
tell window "x"
tell group 1 of scrollview 1
every ui element
end
end
When you locate the object in question you can address it directly:
click button 1 of group 1 of scrollview 1 of window "x"
Some menus and popups can be tricky—you have to click them before you
can discover their contents.
There is a helper: /Developer/Applications/Utilities/Accessibility
Tools/Accessibility Inspector.app
Philip Aker
[log in to unmask]