From cda3ee0a4c93fea9a696e97f705ec06892fa43d8 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:15:07 -0500 Subject: [PATCH] credit attribution to LaunchBar for applescript --- .../Spoons/DismissAlerts.spoon/close_notifications.applescript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/darwin/hammerspoon/Spoons/DismissAlerts.spoon/close_notifications.applescript b/modules/darwin/hammerspoon/Spoons/DismissAlerts.spoon/close_notifications.applescript index cd849a1..a5ec015 100644 --- a/modules/darwin/hammerspoon/Spoons/DismissAlerts.spoon/close_notifications.applescript +++ b/modules/darwin/hammerspoon/Spoons/DismissAlerts.spoon/close_notifications.applescript @@ -1,3 +1,5 @@ +# Credit: https://github.com/Ptujec/LaunchBar/blob/f7b5a0dba9919c2fec879513f68a044f78748539/Notifications/Dismiss%20all%20notifications.lbaction/Contents/Scripts/default.applescript + 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"