System Events & Tiger
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