Hello,
I often (many times a day) use the AppleScript below by the excellent @noisneil to clear notifications, as described in
Clear Notifications - Ventura Macro (v10.2) - Macro Library - Keyboard Maestro Discourse
My problem is that i do not want to clear notifications coming from Reminders. I want to manually clear Reminders notifications only when I completed the task I am being reminded about.
In the script below, is there a way to exclude notifications from the Reminders app ?
thanks in advance for your time and help
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 {"Close", "Clear All"} then
perform _action
end if
end repeat
end repeat
end try
end tell