MacPython Logo from __future__ import *

buy music albums Silver Apples buy mp3 albums Tarrus Riley buy tracks mp3 Kravits buy Reaper albums mp3 buy Kravits albums music buy music Evita CD online albums mp3 Silver Apples download Madonna CD music buy tracks music Kravits download music albums Silver Apples

2003-11-12

Using aeve to make iTunes talk to iChat

Filed under: aeve, python — bob @ 9:46 pm

I was originally going to write a little bit about the unicodedata module, but google tells me that Ludoo already did. So instead, here's a quick aeve script that will set your iChat status message to the current track in iTunes (make sure to run with pythonw, it needs WindowManager access).

import aeve
ichat = aeve.talkto('com.apple.iChat')
itunes = aeve.talkto('com.apple.iTunes')
ichat.status_message = u'\N{BEAMED EIGHTH NOTES} %s - %s' % (
    itunes.current_track.name, 
    itunes.current_track.artist)

Also see Donovan Preston's iTunesStatus script (requires Twisted and Quotient) that makes the same information available from a web browser!

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WP-Hashcash.

Powered by WordPress