how do I use "call method" on accessbility api during GUI scripting?
how do I use "call method" on accessbility api during GUI scripting?
- Subject: how do I use "call method" on accessbility api during GUI scripting?
- From: Sean DeNigris <email@hidden>
- Date: Tue, 22 Jul 2008 19:10:30 -0400
How would I use "call method" to replace the following code?
tell application "Spark"
activate
tell application "System Events"
tell application process "Spark"
set value of attribute "AXSelectedChildren" of list 1 of scroll area 2 of splitter group 1 of group 1 of sheet 1 of sheet 1 of window "Spark" to {static text 1 of list 1 of scroll area 2 of splitter group 1 of group 1 of sheet 1 of sheet 1 of window "Spark"}
end tell
end tell
end tell
I want to change it to something like:
tell application "Spark" activate tell application "System Events" tell application process "Spark" call method "accessibilitySetValue:forAttribute:" of (list 1 of scroll area 2 of splitter group 1 of group 1 of sheet 1 of sheet 1 of window "Spark") with parameters {{static text 1 of list 1 of scroll area 2 of splitter group 1 of group 1 of sheet 1 of sheet 1 of window "Spark"}, "AXSelectedChildren"} end tell end tell end tell
but it won't compile. I get "Syntax Error: expected end of line but found identifier"
Thanks! |
_______________________________________________
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