«
Using aeve to make iTunes talk to iChat
»
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!