Get UI Attribute Value
Get UI Attribute Value
- Subject: Get UI Attribute Value
- From: Bruce Robertson <email@hidden>
- Date: Tue, 06 Oct 2009 14:29:08 -0700
- Thread-topic: Get UI Attribute Value
Using Late Night's excellent UI Browser, I am able to read the detailed
contents of a Filemaker web viewer. However, I can't quite figure out how to
actually get a value out of it.
If I point the web viewer to www.filemaker.com, then I can say this:
attribute "AXValue" of static text of group 1 of group 1 of text field
"Search FileMaker.com" of group 1 of list 1 of UI element 1 of scroll area 1
of window "Basic VList" of application process "FileMaker Pro" of
application "System Events"
And get back this.
Note that it shows the actual contents of the text field "Search
FileMaker.com"
attribute "AXValue" of static text "FileMaker Server" of group 1 of group 1
of text field "Search FileMaker.com" of group 1 of list 1 of UI element 1 of
scroll area 1 of window "Basic VList" of application process "FileMaker Pro"
of application "System Events"
But I can't figure out how to actually retrieve the value or do any kind of
useful coercion.
Complete script:
activate application "FileMaker Pro Advanced"
tell application "System Events"
tell application process "FileMaker Pro Advanced"
attribute "AXValue" of static text of group 1 of group 1 ¬
of text field "Search FileMaker.com" of group 1 ¬
of list 1 of UI element 1 ¬
of scroll area 1 of window "Basic VList" of ¬
application process "FileMaker Pro" of ¬
application "System Events"
set f to item 1 of result
end tell
end tell
activate me
f
(*
attribute "AXValue" of static text "FileMaker Server" of group 1 of group 1
of text field "Search FileMaker.com" of group 1 of list 1 of
UI element 1 of scroll area 1 of window "Basic VList" of
application process "FileMaker Pro" of
application "System Events"
*)
Bruce Robertson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden