gpt4 book ai didi

applescript - 如何使用 applescript 切换新听写工具的语言设置 (10.8)

转载 作者:行者123 更新时间:2023-12-02 08:47:08 25 4
gpt4 key购买 nike

我非常喜欢 MacOSX Mountain Lion 的新听写功能。我用两种语言使用它;英语(美国)和法语。

每次我需要切换语言时,我都必须进入系统偏好、听写和语音,然后选择语言。

现在,我想使用 Applescript 自动执行此操作,不幸的是,由于它太新了,我无法获得正确的听写模块字符串。

快速示例(这只是一个开始):

tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.xxxxxx"
end tell

对于 xxxx,我尝试了“Dictation&Speech”,这是一个没有用的疯狂猜测。

关于如何获得“Dictation & Speech”的确切字符串的任何想法?

提前致谢

弗朗索瓦

最佳答案

要获取 Pane 的 ID:进入系统偏好设置,选择一个 Pane ,在编辑器中运行此脚本。

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

结果是准确的字符串。

关于applescript - 如何使用 applescript 切换新听写工具的语言设置 (10.8),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11680778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com