• 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
how do I use "call method" on accessbility api during GUI scripting?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: System Events XML Suite - how to add / delete elements
  • Next by Date: Re: System Events XML Suite - how to add / delete elements and attributes?
  • Previous by thread: Re: System Events XML Suite - how to add / delete elements
  • Next by thread: collect set of responses messages
  • Index(es):
    • Date
    • Thread