Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

  (email not shown publicly)
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Thursday May 01, 2003
09:56 AM

Lookup iTunes Cover Art

[ #11947 ]

Save this as a compiled script and put it in ~/Library/iTunes/Scripts/ and it will appear in your Script menu in iTunes (or call it outside of iTunes if you prefer).

tell application "iTunes"
    set currart to artist of current track
    set curralb to album of current track
end tell
tell application "Finder"
    open location " y=" & currart & " " & curralb
end tell

Now Playing: Can't Stand Losing You - The Police (Every Breath You Take: The Singles)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by hfb (74) on 2003.05.01 10:34 (#19659) Homepage Journal

    I figure if they can include the cover art that they should make an attempt at the liner notes and lyrics....

    • Why don't you send them some feedback?

      I'm sure they thought of it already. Getting the liner notes and lyrics is a lot more intensive a project than stuffing a single image (scanned once) into all 12 tracks on a CD. There are probably plans in the works already to roll out a new set of AAC files in a year or two with liner notes and lyrics so (a) they have enough time to gather and QA the data and (b) you have more of an incentive to buy (or even, gasp! repurchase) tracks.

      • Your grasp of the obvious continues to be prodigious.

        • If this is so obvious, then why ask for liner notes and lyrics in the first place?
          • I suggested that they might attempt it, not that it was an original idea or that it would not take a large amount of work to do it. Apple is the innovator and I'd like to see them try to make the standard for this kind of data so that every song could have the lyrics, band members names, the year of the recording, artists notes about the song, etc. The album cover is easy. It's all rather obvious except whether or not they'll do something like this or if there are reasons for not considering it.

  • for me (on OSX.3.4 and iTunes 4.6) it works like: tell application "iTunes" set currart to artist of current track set curralb to album of current track open location "" & currart & " " & curralb & "&Continue.x=18&Continue.y=10&ics=20&ico=0" end tell Note the change in Walmarts search string, and that open location goes to iTunes, not Finder (which didn't work at all for me, I used Safar
    • Yes. I modified mine to do both those things recently. Here's my current script.

      tell application "iTunes"
          set currart to artist of (first item of selection)
          set curralb to album of (first item of selection)
      end tell
      set currargs to do shell script "perl -MURI::Escape -e 'print uri_escape(shift), q[%20], uri_escape(shift)' " & quoted form of currart & " " & quoted form of curralb
      tell application "Safari"
          open location "http://www.walma

      • Yes, thank you, found out about that selection thing too, in the iTunes example scripts from Apple. Very nice now! Do you think it would be possible (and feasible) to use perl and regexp or something to parse the resulting page and retrieve the cover image directly?
        • Probably, though I never wanted to. I prefer to see the image first. Mostly these days I just use Clutter, an app that will fetch the cover image and apply it to the music files for you.
        • Hi Everybody! I'm not computer savvy. I have had my iPod Photo since March. Have been using it like crazy and have bought tons of song from iTunes. I tried connecting since yesterday and it's not working :( I has able to connect sunday! I haven't done anything new to my computer everything is the same. ACtually I logged off on sunday and started it up again yesterday and iTunes is the only thing not working. I called apple and the want to chatge me again for the same problem eventhough they can't fix it. T