The Artima Developer Community
Sponsored Link

Python Buzz Forum
Using aeve to make iTunes talk to iChat

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bob Ippolito

Posts: 255
Nickname: etrepum
Registered: Nov, 2003

Bob Ippolito uses MacPython too much
Using aeve to make iTunes talk to iChat Posted: Nov 24, 2003 9:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Bob Ippolito.
Original Post: Using aeve to make iTunes talk to iChat
Feed Title: Bob's Rants
Feed URL: http://www.pycs.net/bob/weblog/rss.xml
Feed Description: from __future__ import *
Latest Python Buzz Posts
Latest Python Buzz Posts by Bob Ippolito
Latest Posts From Bob's Rants

Advertisement

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!

Read: Using aeve to make iTunes talk to iChat

Topic: Notes from PyCon DC Previous Topic   Next Topic Topic: Wanted: A serverless group blogging tool

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use