r/applescript • u/yalag • Sep 21 '24
How to update this script for sequoia?
tell application "System Events"
try
set _groups to groups of UI element 1 of scroll area 1 of group 1 of window "Notification Center" of application process "NotificationCenter"
repeat with _group in _groups
set _actions to actions of _group
repeat with _action in _actions
if description of _action is in {"Schlie§en", "Alle entfernen", "Close", "Clear All"} then
perform _action
end if
end repeat
end repeat
end try
end tellI have this script that dismisses all the notifications, every year I have to update it for new OS. Anyone know how to for this year?
6
Upvotes
2
u/TheJmaster Sep 21 '24
1
u/TheJmaster Sep 21 '24
1
u/mad_scrub Nov 01 '24
An alternate version: