📜 ⬆️ ⬇️

Change from Growl to Notification Center

Introduction

With the release of MacOSX 10.8, the Notification Center, also known as the Notification Center, was introduced to the public. As soon as you receive a new mail or, for example, the download to Safari ends, you will see a pop-up window in the upper right corner with a notification informing you about it. Also on the svaypu with two fingers to the left (or on the hotkey), you can bare the notification panel, which is almost identical to the one in iOS.

Problem

Everything would be fine, but there is only one thing: since 2004, all applications use Growl for the purpose of notifying the user and are not in a hurry to switch to a new system. In particular, Skype, Adium, Transmission and many many other applications for everyday use.

Decision?

Hiss is one of the very first solutions that appeared on the web. And the last. Hiss catches notifications instead of a growl and sends them on his behalf to the Notification Center, with the result that the result is not the most pleasant picture: image
As can be seen in the screenshot, the result does not look like the expected one. Also, there are no individual settings for applications. The option is working, but not convenient.

Better solution

This summer I decided to rectify the situation and, not finding any solutions to the problem on the Internet, apart from promises to release growl2, I began writing CentralNotifier.
')
What is it?

Central Notifier is a small application that is injected using a SIMBL into everything that moves in the system (like a maximizer that adds lion's fullscreen to all applications that it is possible to). If the application supports growl, then after injection all notifications intended for growl will be sent to the Notification Center. As a result, we have just such a picture: image
As well as settings for applications: image

And what's the catch?

Work it works, but is at an early stage of development. I no longer have time to do this project, and I got accustomed to the current bugs. I have been working without complaints for a month already, I decided to share it with the public and I will be very happy if someone takes the project under his wing.

Installation

1) Install SIMBL
2) Download and unpack cl.ly/2l0O2w1m3v3H
3) CentralNotifier.bundle -> ~ / Library / Application Support / SIMBL / Plugins /
4) SIMBL.osax -> / Library / ScriptingAdditions *
5) DoubleClick CentralNotifier-PrefPane.prefPane
6) Restart without saving the status of applications
* - this is a modified injector (which violates the author's request to rename his offspring with any changes). If you want to inject into applications that do not have an icon in the dock, you need it. No - everything works with the usual SIMBL. For any problems with a modified injector, please do not contact the author of SIMBL

Sources

Sources are on GitHub . Do what you want with them, keeping the original authorship behind me.

Known bugs

1) After a reboot, sometimes you have to restart all applications for injection to occur. This happens because the injector starts later than the applications themselves. A great example in the screenshot below. Each reboot starts with killall HardwareGrowler.
2) To apply the settings to the application notifications, you need to change them in the prefpane, exit it, and then restart the application itself.
3) The Forget Application button is obtained for beauty. To remove the application, you need to handle the plist in ~ / Library / Preferences
4) If the application was turned off after sending notifications, then these notifications are no longer cabled (the one who is responsible for them no longer exists)
5) More for the month, the shoals are not seen.

Can I wait for growl2?

My personal opinion: Either they will do like Hiss, or they will not be allowed in the AppStore. To post notifications on behalf of another application, you must either inject it (you can immediately forget about the appstore), or do a magic kung fu (the chance with which to go to the same appstore is very small). I think it would be good to continue developing CentralGrowler, I don’t see any more options for redirecting notifications.

I hope that my work will be useful to somebody.

PS

Forgot to mention in the article, and decided to add here at the bottom. CentralNotifier completely transfers the feedback: if you poke into the notification, the application will respond the same way if everything worked through Growl.
Some more screenshots


Source: https://habr.com/ru/post/151746/


All Articles