osascript -e 'tell application "System Events" to tell process "NotificationCenter"
            click last item of windows
        on error
        end try
    end tell'

In macOS Catalina, The shell script above can active and open the latest notification, but after updated to Big Sur, this not work, is there any way to make this work?


You must log in to answer this question.

Browse other questions tagged .