Sucking out the iTunes Marrow

by Erica Sadun

I hate having to use the iTunes interface directly. It's slow. It's annoying. It's not macro-friendly.

So last night I decided to throw together some code to grab featured items from the iTunes Music Store and show them all together in Safari. From the command line. With working links, of course.



Josh Peters
2006-04-05 12:26:33
Can you change the TIFF into something more web-friendly? You crashed my Opera!
Erica Sadun
2006-04-05 12:32:29
Oh no! Poor Opera! (Sorry..)

Alas, the TIFF is native to the iTMS.

Erica Sadun
2006-04-05 12:33:15
By the way, I've stuck a downloadable version of the utility here.
Phil U.
2006-04-05 13:50:04
I don't think Josh means the TIFF in the script (though he may) - I think he probably means the TIFF in the article itself. (Which, for the record, shows up as alt text in Firefox for Windows. I can't check on my Mac right now, I'm at work.)
2006-04-05 13:57:28
Right, there seems to be a problem with 0604iTunesPicscaled.tiff. Safari and Vienna both display it but report the error "TIFFReadDirectory: tiff data provider: Seek error accessing TIFF directory.\n", while Camino doesn't display it at all, just the file name.
2006-04-05 14:43:09
I wish that it was easier to bookmark a artist or album.

Also, why can't someone who likes a certain brand of music choose that music for their "homepage" in iTunes?

2006-04-05 15:50:42
uhhhh, TIFFs on a webpage?

come on now. you can try a bit harder.

Erica Sadun
2006-04-05 16:24:41
Sorry about the TIFF. It was left over from doing book screen shots . I'll JPEG for the future, but I'm not sure what I can do now to fix things.
Adam Read
2006-04-05 22:13:54
The German store doesn't have any free stuff, and the Canada store doesn't seem to use the triangles. I have a feeling trying to internationalize the script would be more work than it's worth.
2006-04-06 06:10:22
Very cool!

You can also use the iTunes Music Store RSS Generator to set up up a custom RSS feed and then bookmark the feed in Safari or any RSS reader.

Rock on!

Randal L. Schwartz
2006-04-06 19:14:20
Almost all of that code can be done within Perl, instead of shelling out so much. It'd be a lot faster and safer that way too.