del.icio.us for applescript

A little applescript snippet

April 03, 2008

In the last days I found myself doing over and over the same combo: rating a music 5 starts in iTunes and then loving it in Last.fm, so as any Software Developer, I automated the process:

tell application "iTunes"
	set rating of current track to 100
end tell

tell application "Last.fm" to activate
tell application "System Events"
	key code 76 using command down
end tell

tell application "System Events"
	set visible of process "Last.fm" to false
end tell

Saved as a application in my AppleBin directory, and now I just use spotlight to reach it (Sorry, but I can’t get used to quicksilver…)

And I just love reading AppleScript! As for writing, it sucks :/

Tagged with: , ,
This post has 0 comments. Feel free to read them and leave your own.

About

I used to write in this blog, but I've found a better format to express myself. From now on, you may read my writings on ideas, programming and politics on my new wiki.

hCard

Name: Alcides Fonseca
Email:
MSN:
Gtalk:
Nov 24, 1988 40.197958, -8.408312

Tagcloud

Archives

Other links