macos - 在 macOS Sierra 上启动语音首选项面板

标签 macos macos-sierra

是否可以在 macOS Sierra 上打开“辅助功能/语音”的情况下启动首选项面板?对于可访问性,我知道您可以使用 x-apple.systempreferences:com.apple.preference.universalaccess 来实现。我也知道 Accessibility Pane 中的大多数选项卡在启动时都可以打开,但是没有文档说明是否可以在 Sierra 上使用 Speech 选项卡。这是迄今为止我找到的最全面的链接:https://macosxautomation.com/system-prefs-links.html , 但它早于 Sierra 并且语音当时属于不同的 Pane ,因此它被列出但该链接没有用。

最佳答案

您正在寻找 x-apple.systempreferences:com.apple.preference.universalaccess?TextToSpeech

可以通过打开 Pane 然后使用 applescript 查询应用程序来检索 Pane 的 anchor :

tell application "System Preferences" to get anchors of current pane

哪个返回:

"Keyboard"
"Dwell"
"Captioning"
"Seeing_VoiceOver"
"SpeakableItems"
"TextToSpeech"
"Hearing"
"Switch"
"General"
"Media_Descriptions"
"Mouse"
"Seeing_Display"
"Seeing_Zoom"

关于macos - 在 macOS Sierra 上启动语音首选项面板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44651894/

相关文章:

postgresql - 如何在我的 Mac 上卸载 postgresql(运行 Snow Leopard)

macos - 连续的 sys_write 系统调用没有按预期工作,OS X 上的 NASM 错误?

objective-c - 使 Cocoa 应用程序可编写 AppleScript 脚本的问题

xcode 8.3 错误 : The specified item could not be found in the keychain

git - SSL:CA 证书集,但证书验证被禁用 - Mac OS Sierra

eclipse - OSX 上 eclipse 中的 Java SE 1.6

macos - Nohup 不适用于 OSX

macos - AddKeysToAgent 是 ssh 配置在 Mac 上不起作用

macos - 登录 : login: Could not determine audit condition

swift3 - Swift 3 将字符串复制到剪贴板