• 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
System Events & Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

System Events & Tiger


  • Subject: System Events & Tiger
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 29 Apr 2005 22:05:13 +0100

I haven't bothered to read the documentation yet - I'm just nosing around
the new OS - but it seems that you can get a lot more data from apps using
System Events now:

-- get text from Safari document
tell application "System Events"
    tell process "Safari"
        get value of UI element 1 of scroll area 1 of group 3 of window 1
    end tell
end tell

-- get text from PDF
tell application "System Events"
    tell process "Preview"
        get value of static text of scroll area 1 of window 1
    end tell
end tell

Couldn't see a way of grabbing *selected* text, but will keep digging.

BTW the Developer Tools has two new Accessibility apps that are an
improvement on the UIElementBrowser.

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Image upload via FTP
  • Next by Date: Re: [OT] institute for backup trauma
  • Previous by thread: Re: Newbie with an easy question
  • Next by thread: Recovering Run Only script
  • Index(es):
    • Date
    • Thread