如何使用AppleScript打开Siri?

问题描述 投票:2回答:1

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

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

非常感谢您的帮助。

applescript siri
1个回答
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

您必须在“安全性和隐私”中启用适当的辅助功能部分

© www.soinside.com 2019 - 2024. All rights reserved.