Replacement for IMService notification center in Mavericks?

I would like to track the status of one or my friends in Message.app.

So far, I have used IMService without problems, registering for IMPersonStatusChangedNotification notifications from the IMService notification center .

But this class is deprecated in Mavericks AND [IMService notificationCenter] returns nil .

I was thinking of two unsatisfactory alternatives:

  • Polling every few seconds using the AppleScript interface, but this is contrary to the Mavericks saving spirit. I would prefer to receive notifications. The only purpose of this application is to monitor the status of a friend so that he really is not an energy swamp!

  • Use the AppleScript event handlers on buddy became available and on buddy became unavailable to notify my application (via AppleScript) that the buddy status has changed, but you need to manually add AppleScript in the "Message" preferences. This will interfere with any custom AppleScript that the user already uses in messages. In addition, it is not clear to me how downtime status is handled.

Is there a way to get notified when my buddy status changes in Mavericks? If not, would there be a better way to control my buddy status?

A specific service is GoogleTalk, if that makes searching easier.


Edit: The best solution would be to create a very lightweight XMPP client so that you don’t rely on Messaging.app or the system at all. Any recommendations on how to do this?

+7
osx-mavericks notifications status macos instant-messaging
source share

No one has answered this question yet.

See related questions:

388
Chrome desktop notification example
306
Install Java on OS X 10.9 (Mavericks)
183
MAMP Pro 3.05 on Mavericks updated to Yosemite - Apache not starting
170
Creating a notification system
147
Unable to upgrade Macports (with Mac OS X Mavericks)
115
Genymotion, "Unable to load VirtualBox engine." on the mavericks. VBox is configured correctly
108
Error installing Nokogiri on OSX 10.9 Maverick?
65
Maven not found on Mac OSX mavericks
one
OS X start command when notifying the Notification Center
0
Mavericks notification center, such as view

All Articles