Revisiting Moving VO Cursor with JXA
Revisiting Moving VO Cursor with JXA
- Subject: Revisiting Moving VO Cursor with JXA
- From: Chi Kim <email@hidden>
- Date: Tue, 23 May 2017 03:18:30 +0000
- Thread-topic: Revisiting Moving VO Cursor with JXA
Hi All,
I'm having a problem moving vo cursor using JXA.
The following works with AppleScript
tell Application "VoiceOver"
tell vo cursor
move right
end tell
end tell
However, the following doesn't work with JavaScript:
Application("VoiceOver").voCursor.move("right")
Error: named parameters must be passed as an object.
I tried multiple things, but couldn't get it to work.
Application("VoiceOver").voCursor.move({direction:"right"})
Error: An error occurred.
Application("VoiceOver").voCursor.move({to:"right"})
Error: Can't convert types.
However, the following works.
Application("VoiceOver").voCursor.move({to:"dock"})
Vo cursor goes to dock. I just can't move up/down/right/left/into
item/out of item.
Does anyone have some insight on how to move vo cursor using jxa?
Any help would be really appreciated!
Thank you so much in advance!
Chi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden