0
osascript -e 'tell application "System Events" to tell process "NotificationCenter"
    try
            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?

0

You must log in to answer this question.

Browse other questions tagged .