Skip to content

Instantly share code, notes, and snippets.

@jasontate
Created September 4, 2022 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasontate/e0017ee89267bd66e1c78519987565c5 to your computer and use it in GitHub Desktop.
Save jasontate/e0017ee89267bd66e1c78519987565c5 to your computer and use it in GitHub Desktop.
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