Gible
Gible

Reputation: 166

How to open Siri with AppleScript?

I would like to open Siri with AppleScript, and I don't know how.

It has been very hard trying to find it in the official documentation.

Any help is very appreciated.

Upvotes: 2

Views: 734

Answers (1)

vadian
vadian

Reputation: 285240

A possible solution is to enable "Show Siri in menu bar" in System Preferences and run

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

You have to enable the appropriate Accessibility sections in Security&Privacy

Upvotes: 2

Related Questions