Created
September 4, 2022 02:01
-
-
Save jasontate/e0017ee89267bd66e1c78519987565c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell process "NotificationCenter" | |
set theWindow to group 1 of UI element 1 of scroll area 1 of window "Notification Center" | |
# click theWindow | |
set theActions to actions of theWindow | |
repeat with theAction in theActions | |
if description of theAction is "Show More" then | |
tell theWindow | |
perform theAction | |
end tell | |
exit repeat | |
end if | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment