• 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: UI Scripting - selecting text items from a scroll area
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Scripting - selecting text items from a scroll area


  • Subject: Re: UI Scripting - selecting text items from a scroll area
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 09 Jun 2004 16:21:28 +0100

on 9/6/04 2:18 pm, deivy petrescu at email@hidden wrote:

> Try selecting then. If you can, try keystroke "name of selection here"
> and instead of click, try return.

Couldn't get that to work :-(

But, I've just this minute found a way of doing this by forcing the value of
"AXFocused":

tell application "Address Book"
activate
end tell
tell application "System Events"
tell process "Address Book"
tell static text 1 of radio group 1 of scroll area 1 of scroll
area 1 of browser 1 of window 1
set value of attribute "AXFocused" to true
end tell
end tell
end tell


Which can probably be simplified when I put this snippet back into the
script.

And I need only concern myself with the position of the devices in the list
rather than their names.

Wonder if this method is robust enough to work on anything other than my
laptop?

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.


References: 
 >Re: UI Scripting - selecting text items from a scroll area (From: deivy petrescu <email@hidden>)

  • Prev by Date: Re: UI Scripting - selecting text items from a scroll area
  • Next by Date: Startup !
  • Previous by thread: Re: UI Scripting - selecting text items from a scroll area
  • Next by thread: Javascript wrapper for Applescript
  • Index(es):
    • Date
    • Thread