playlist tricks

Is there any way to make an iTunes playlist that selects from other playlists? Basically, I want to use "Party Shuffle" with "play higher rated songs more often", but I also want it to play a song a lot more often if it was recently added. Something like: "half of the time, pick from 'Recently Added' instead of 'Library'". Any ideas?

Update: Ok, I think this works:

  • File / New Folder / "75% Recent, 25% Library"
  • File / New Smart Playlist / "Recently Added (750 songs)"

    • Date Added · is in the last · 90 · days
    • Kind · is · Mpeg audio file
    • Podcast · is false
    • Last Played · is not in the last · 1 · days
    • My Rating · is not · 1 star
    • Limit to · 750 · songs · selected by · random
    • Match only checked songs
    • Live Updating
  • File / New Smart Playlist / "Library (250 songs)"

    • Kind · is · Mpeg audio file
    • Podcast · is false
    • Last Played · is not in the last · 1 · days
    • Playlist · is not · "Recently Added (750 songs)"
    • Limit to · 250 · songs · selected by · random

    • Match only checked songs
    • Live Updating

Drag the two playlists into the "75% Recent, 25% Library" folder; then in Party Shuffle, set "Source" to that folder.

Both of the sub-playlists have to have the "Last Played" rule, or else they will never update, and you'll always get exactly the same 250 "old" songs.

(Instead of a folder, you could also use a third smart playlist with an "or" of two "Playlist is" rules, but by using a folder you can close the triangle and not have the two sub-lists taking up space in the window.)

I wish there was an "hours" option instead of just "days": I'm ok hearing the same song twice in one day if it's a brand new song.

Tags: , , , ,

Limbo consigned to history books

Apparently Limbo was only a THEORY -- like gravity!
The Pope is set to abolish the concept of Limbo, overturning a belief held by Roman Catholics since the Middle Ages. He is on record as saying that Limbo has no place in modern Catholicism. In 1984, he told Vittorio Messori, the Catholic author, that Limbo had "never been a definitive truth of the faith". He said: "Personally, I would let it drop, since it has always been only a theological hypothesis."
Tags:

AppleScript

AppleScript sure is horrible. And slow. I wanted to get a list of the file names of the songs in a given playlist, and doing it like this takes hours when there are a few thousand songs in the playlist:

    tell application "iTunes"
      repeat with f in (every file track of playlist "Foo")
        set output to output & (get location of f) & "\n"
      end repeat
    end tell

Maybe I'd be better off groveling through the "iTunes Music Library.xml" file...

It's pretty crazy that there seems to be no way to write to stdout besides appending to the magic "output" variable (which writes it all at once, at the end) or invoking a sub-shell to run "echo".

Do any of the Perl AppleScript bindings (there seem to be at least two of them?) just invoke "osascript", or do they do something less stupid and more efficient?

Tags: , , ,
Current Music: (the non-music of iTunes using 78% CPU)