【问题标题】:How to open Siri with AppleScript?如何使用 AppleScript 打开 Siri?
【发布时间】:2020-06-12 09:00:04
【问题描述】:

我想用 AppleScript 打开 Siri,但不知道怎么做。

很难在官方文档中找到它。

非常感谢任何帮助。

【问题讨论】:

    标签: applescript siri


    【解决方案1】:

    一种可能的解决方案是在系统偏好设置中启用“在菜单栏中显示 Siri”并运行

    tell application "System Events" to tell the front menu bar of process "SystemUIServer"
        tell (first menu bar item whose description is "Siri")
            perform action "AXPress"
        end tell
    end tell
    

    您必须在安全和隐私中启用相应的辅助功能部分

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-29
      • 1970-01-01
      • 1970-01-01
      • 2011-07-16
      相关资源
      最近更新 更多