There are 2 types of notifications, alerts and banners . Banners go away on their own, whereas you have to interact/click alerts to make them go away. In the System preferences>Notifications, there are some apps for which you can set the notification style as banners. But all apps are not shown in System preferences/Notifications. e.g. this image. The system shows you alerts which you have to interact/click. I do not want to do that. I want the notifications to show and go on their own with no interaction on my part. Is there any way to permanently make the system/mac os show only banners and not alerts. Kindly tell me which system file I have to modify and how to modify it. Because as I understand Apple is not going to implement a global setting to set all notifications as banners (why? because they are attention suckers and irritate in a subtle kind of way folks). Any help would be appreciated.
on run tell application "System Events" tell process "NotificationCenter" set numwins to (count windows) repeat with i from numwins to 1 by -1 tell window i set temp to value of static text 1 end tell if temp contains "Disk Not Ejected Properly" then click button "Close" of window i end if end repeat end tell end tell end run on idle delay 60 end idle on quit continue quit end quit