Coding just likes Art
This is the blog about the coding, the whole coding and nothing but the coding , so God would help me become a better developer.

Close the damned notification windows using AppleScript

1 Close the damned notification windows

tell application "System Events"
    if exists (window 1 of process "Notification Center")
        if exists (button "Close" of window 1 of process "Notification Center")
            click button "Close" of window 1 of process "Notification Center"
        end if
    end if
end tell