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?
osx-mavericks notifications status macos instant-messaging
Simon
source share