Adium
Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
Last.fm Last Track

Last.fm Last Track

Submitted By Frans Twisk (Puck)

Description

Display the last track you've submitted on your Last.fm account. If you're like me and play your music on another computer or media center, you can use this Xtra to show the track you're playing now or recently played. Just like Last.fm it displays either:

"currently listening to Come To Daddy by Aphex Twin"

or, if the song is played more then 10 minutes ago:

"was listening to Come To Daddy by Aphex Twin 23 minutes ago"
"was listening to Come To Daddy by Aphex Twin 1h and 4m ago"


It's Last.fm friendly, since it uses a delay for fetching the last track of the last.fm server.

Usage
Put the following in your name, status message or message:

%_lastfmtrack{username,delay}
username: your last.fm username
delay: refresh time for fetching track of server (Adium refreshes like every 30 sec. so set delay to '6' for every 3 minutes)

Customization
You can change the text 'currently listening to' and 'was listening to ... ago' easily by doing the following:

  1. Go to "Users/'your mac username'/Library/Application Support/Adium 2.0/Scripts/"
  2. Rightclick on "Last.fm Last Track.AdiumScripts" select "Show Package Contents"
  3. Go to "Contents/Recources/"
  4. Open "Music.scpt" (doubleclick)
  5. Search (cmd+f) for "currently listening to" or "was listening to" and change it into whatever you want (mind the spaces after the sentences)! You can also change the others texts between the "" like "minutes ago" etc.
  6. Save the AppleScript
  7. Restart Adium!


Disclaimer
I'm not responsible for anything that could affect you or your computer when using this script ;-) Also, this is my first Adium script so if you find any bugs or have improvements of the script, leave a comment or contact me through my Last.fm profile: http://www.last.fm/user/hexagram/

Comments

You can reply to individual comments by clicking the "Reply" link next to each.

# by Skunkie on 05/22/08 at 11:30:23

Thank you very much for this! I have been waiting for such a script. Pure greatness (great demo song/artist choice too).

# by jazzndre on 06/03/08 at 05:57:58

thanks, that's a great script. how can i modify the "was listening to..." and "currently listening to..." parts?

# by Puck on 06/13/08 at 11:31:37

I've added a "Customization" tutorial in the Xtras description. Good luck!

# by bittin on 10/04/08 at 23:01:35

Thank you :)

# by norz on 04/12/09 at 12:51:59

Thank you, great script! :)

I tried to add a little note symbol (♫): it didn't work in script editor, the script would have to be in unicode I guess. Anyway, adding the symbol directly in Adium settings worked for google talk, but made msn display no status at all. :(

# by lu_yw on 11/06/08 at 03:10:21

Hey, great script! but I'm bit silly and don't know how to use it to accommodate my needs.
It doesn't show the actual song I'm listening to on the Last.fm player at the moment, but a song I've listened to before.

IE, If I'm listening to Song A, It won't say "Currently listening to Song A by Whatever" but "Was listening to Song B by Whoever 11 minutes ago." And when I'm not playing a song at all, it will tell say that I'm listening to Song A again.

How do I turn off the "Was listening to" thing altogether? I just want to display what I'm currently listening to at the moment, just like how you can do so on iTunes.

Thanks for all your help! (:

# by lisnake on 11/06/08 at 20:31:07

I have absolutely the same problem as lu_yw.
I hope you can sort it out :)

# by lisnake on 11/06/08 at 20:51:05

oh, discard this coment, please
stupid me, i understood, this is just the way it works. sorry

# by Puck on 11/06/08 at 22:59:33

Yup, it's the way it works. There is a delay becuase it takes a bit of time before last.fm scrobbles the song and for the plugin to get the last song. This means that sometimes (for instance when you listen to a song that is 10 minutes or longer) you'll see the "was listening to". Anyway: there is always a delay. You could lower down the delay for faster synchronization, but last.fm needs it time to scrobble anyway. Conclusion: it's not real-time like the iTunes plugin (which works on the same computer), but for me I see no problem. The fact that you want people to show them your music is about the music and your identity that comes along with it... So what it's 3 minutes later?

# by juanchi on 12/07/08 at 18:35:53

Hi I'm thinking if is posible to check if the current song is loved by the user and change the status to something like "juanchi is loving little wing by jimi hendrix"

# by norz on 04/12/09 at 12:32:31

+1
Good idea! :)

# by mucifous on 08/11/11 at 23:56:16

Hi, I have used and loved this script for a while. Realized today that unlike the itunes status, it posts now playing with every change to gtalk users. Is there some way to suppress that behavior?

Post a New Comment

You must be logged in to post comments.

Install | Download
13.87kb (5222 downloads)

12345
4.30 / 46 votes
Current Version: 1.0
Last Updated: 05/09/08
Credits:
Slightly based on zaudragon's 'Last.fm Data' Xtra