• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get UI Attribute Value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get UI Attribute Value


  • Subject: Re: Get UI Attribute Value
  • From: "Stockly, Ed" <email@hidden>
  • Date: Tue, 06 Oct 2009 14:33:05 -0700
  • Thread-topic: Get UI Attribute Value

I think that's PreFab, not LateNight : )


On 10/06/09 2:29 PM, "Bruce Robertson"  wrote:

> 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:
> com
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden

 _______________________________________________
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

References: 
 >Get UI Attribute Value (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Get UI Attribute Value
  • Next by Date: Re: script works when reading from DVD but not when reading from hard disk
  • Previous by thread: Get UI Attribute Value
  • Next by thread: Re: Get UI Attribute Value
  • Index(es):
    • Date
    • Thread