System Events - Limited by app's dictionary?
System Events - Limited by app's dictionary?
- Subject: System Events - Limited by app's dictionary?
- From: email@hidden
- Date: Thu, 29 Jan 2004 11:21:35 -0500
I might be expecting too much of System Events...
I'd like to automate Phase One's "Capture One" application which has a very
meager dictionary. With UI Inspector I see that a particular button in a
radio group in a toolbar has the hierarchy
<AXApplication: "Capture One">
<AXWindow: "name_of_picture">
<AXToolbar>
<AXGroup>
<AXRadioGroup>
<AX Button: "Or">
The Capture One dictionary has a WINDOW entry but nothing pertaining to
toolbar, group, radiogroup, or button. I've tried various combinations of
tell app "Capture One" to activate
tell app "System Events"
tell process "Capture One"
tell window "name_of_picture"
tell toolbar / tell toolbar 1 / tell <AXToolbar> / tell
AXToolbar / etc. -- nothing works
tell group -- likewise for groups
tell radiogroup -- and likewise for radio groups
click button "Or"
end tell
end tell
end tell
end tell
end tell
end tell
I get various compilation errors ("variable toolbar not defined", etc.).
Am I beating a dead horse or is there actually a way to get System Events
to click to "Or" button? At least with Prefab Player I could click a mouse
location if nothing else. I can't locate any System Events documentation
apart from the 3 or 4 pages at
http://www.apple.com/applescript/uiscripting.
Thanks very much...
- Dan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.