JXA with VoiceOver Commander
JXA with VoiceOver Commander
- Subject: JXA with VoiceOver Commander
- From: Chi Kim via Accessibility-dev <email@hidden>
- Date: Thu, 1 Jun 2023 12:57:19 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Uni8OGKK9D3BGy0w1U1CKySs/tLVfgquMz2yHnbhWyI=; b=kCsbQ4klBVqGgzurkWbWIgs6h+mmvjCuZ2ywk2fdqsfpS/g4Y1CTS+JuGOZtx74P4tXmLJbfqoOg2vzBIclFJED+ixtKbbOsGy5/iLQ17i93aZ1Z0ajyghUEU1wEok/ggbm0/rNCN0N5K6RpVmr3IHxKu+NJEHAeH7wG8YvNb9PkGapY0kDTxy1IHiWRFGhrWQ1t5Yz5LbSrYWyMbIUZKSULD7DTb94lPnRUj8VfYI9jKXAsQ/1niMPLpIrGDWWB8r0NnJhLMBzAej0kNwyHJmLeEEqGFGVYDcJajT70/9Qxx8ksqkEE+GVI8i2ux4iawVK4Ku4PpR/gEaF0NXNGpw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P6etRAPN/mQpav+PEFOntr4snNxkQqys3iHWY95fGNjvuNLysq70mIDcBAqaCAX0U0X4JrzyTFW9q/b9Kt6CS/h2Eg8ovzbpQ2UVpscd0u6rngcXqRPoj3xcZP9QT1y3qhjnaKZw+Ra5LjU25jrDX0hsMUzcUWWV2FDAf7DT3fsB1hdBY5GR2QpuZCOHwx4cQJ5DXjf5df7RPEsr/X4V8vlHZwoESpHV6fQdVVVmOmXbbgQzwoV8kD+2X+mgycEgJTMYBMPHpqKR4pinKZzu1wUBRPRHGAaiudW/ERTZV475IGo+a9vMw9nN5iJcn0HGIaMIybDtY0M5mY6aCAY85Q==
Hi all,
I can't seem to execute Voiceover command with JXA.
The following AppleScript works.
tell application "VoiceOver"
tell commander to perform command "item chooser"
end tell
However, the following script in JXA throws a mystery error.
vo = Application("VoiceOver")
vo.commander.performCommand("item chooser")
Error 6: An error occurred.
I'd really appreciate any help with this!
Thanks so much!
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