Re: Get UI Attribute Value
Re: Get UI Attribute Value
- Subject: Re: Get UI Attribute Value
- From: Bruce Robertson <email@hidden>
- Date: Tue, 06 Oct 2009 16:28:27 -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:
Ed Stockley says:
> I think that's PreFab, not LateNight : )
Oops, PreFab yes.
Anyway, solution is:
activate application "FileMaker Pro Advanced"
tell application "System Events"
tell application process "FileMaker Pro Advanced"
get 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 value of item 1 of result
end tell
end tell
F
Solution to click link on the FileMaker page:
(corrected)
choose from list { "Products", "Community", "Solutions"}
set theLink to item 1 of result
activate application "FileMaker Pro Advanced"
tell application "System Events"
tell application process "FileMaker Pro Advanced"
set linkref to a reference to UI element theLink of list 2 of UI
element 1 of scroll area 1 of window 1
perform action "AXPress" of linkref
end tell
end tell
_______________________________________________
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