Normally you need to play your recommended radio station in last.fm's proprietary player, but this hint describes how to listen using iTunes. This lets you listen through Airport Express speakers, or is good if you just prefer to do all your listening in iTunes.
- Create an account at last.fm.
- Download and install the Audioscrobbler plugin for iTunes (it's called iScrobbler) from last.fm. You'll need to enter your last.fm username and password into the preferences. This runs in the background and tells last.fm about your listening habits as you use your iTunes normally (when you play your own music). An invasion of privacy, yes, but that is what you're trying to accomplish -- this not only improves the quality of last.fm's collective musical brain, but is also the thing that allows last.fm to make recommendations for you.
- You need to use iTunes for some time (I think at least a week) before last.fm can begin to make recommendations for you. You can see your recommendations on your last.fm recommendations page.
To run LastFMProxy from iTunes' Scripts menu, do the following:
- Unzip LastFMProxy and copy the folder into ~/Library/iTunes/Scripts. Rename the folder lastfmproxy.
- In that folder, edit the file config.py to change the username and password settings to be your last.fm username and password.
- Download these scripts (4KB; macosxhints mirror) and put them in ~/Library -> iTunes -> Scripts. Restart iTunes so they show up in the Scripts menu. These are simple scripts that just save you from using the command line to control LastFMProxy and integrate it better into iTunes.
For more detail about what's playing, run the Lastfm Control script. This just points Safari to a page generated by the LastFMProxy, which also lets you use Lastfm's Skip and Ban functions, as well as modify the station.
The Lastfm Quit script tells the LastFMProxy server to quit (potentially freeing up some tiny amount of computer resources, compared to just pressing Stop or changing the track in iTunes).
You can also add LastFMProxy's stream to your iTunes library, the URL is http://localhost:1881/lastfm.m3u. This can be convenient so you can switch among playing Lastfm and other things, but remember the proxy needs to be started via the Lastfm Start script before that stream will work.
Other Applescripts could easily be written to control LastFMProxy in other ways, such as to tune into various keyword or neighbor stations, or to do the Skip or Ban functions. See LastFMProxy's Readme file for suggestions. Enjoy your music!

