如何使用AppleScript打开Siri?

如何使用AppleScript打开Siri?,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") p

我想用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
您必须在安全和隐私中启用相应的可访问性部分