applescript - 如何使用 AppleScript 打开 Siri?

标签 applescript siri

我想使用 AppleScript 打开 Siri,但不知道如何操作。

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

非常感谢任何帮助。

最佳答案

一个可能的解决方案是在系统偏好设置中启用“在菜单栏中显示 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

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

关于applescript - 如何使用 AppleScript 打开 Siri?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62340949/

相关文章:

variables - 如何在 AppleScript 中使用变量(从 Automator 中调用)

ios - 确定 iOS 应用程序是否通过 Siri 启动

performance - 语音识别,例如 Siri

ios - 如何使 SFSpeechRecongnizer 可重用于每个 UIViewControllers

applescript - 从 Applescript 打开 MacVim

ios - 如何根据 Xcode 中的文件夹结构排列我的项目文件

applescript - 为什么 AppleScript 总是在按下 Command 的情况下发送击键?

ios - Siri 集成 : Audio call using Siri?

iphone - 可以在应用程序中禁用 Siri 吗?

macos - 点击苹果通知重定向到applescript编辑器