tell application "Terminal" do script "sudo chmod 600 /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter;killall NotificationCenter; killall Dock" end tell
tell application "Terminal" do script "sudo chmod 777 /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter; killall Dock" end tell
File a bug report with Apple saying there should be a way to disable or hide the notification icon for people who are not using it.I dont use it so it just takes up space.
I figured out a way. ^.^ never mind.
sudo launchctl remove com.apple.notificationcenterui.agent launchctl remove com.apple.notificationcenterui.agent
launchctl submit -l com.apple.notificationcenterui.agent -p /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter
I get told there is no suck process.To permanently remove the notification center,
This will prevent it from launching in the first place - since setting the permission to make it unavailable pollutes the syslog as the launchd process attempts to load the notification center continuously.Code:
sudo launchctl remove com.apple.notificationcenterui.agent
To get it back
no fuss no muss, no permissions to reset.Code:
sudo launchctl submit -l com.apple.notificationcenterui.agent -p /System/Library/CoreServices/NotificationCenter.app/Contents/MacOS/NotificationCenter