Script to create playlist for all "Artist - Album"

7 views
Skip to first unread message

paul_craven

unread,
Mar 17, 2009, 8:06:58 PM3/17/09
to Teridon's iTunes Programs
Robert,

Thanks for publishing these scripts, they are great, and save huge
amounts of time. I wonder if you can help me with some advice?

I have recently had an iPod kit fitted to my car which works well, but
unfortunately has one real limitation when viewing the track listings
on the stereo. You can only view tracks by Artist OR Album, not both
in a hierarchy (As you would expect!). As such the only real way this
can be done is to create a playlist for each and every album and view
albums/tracks is via the 'playlist' function on the stereo. So, I
need to create a playlist for every album I have in my iTunes library
by "Artist - Album". I have hundreds of albums, and your script for
this would work perfectly if I could add "$Artist - " to the beginning
of the playlist name? I was wondering how to tweak it in order to
create the playlists automatically?

In an ideal world, I would like to end up with a playlist for every
album in my iTunes library in the following format:

"$Artist - $Album"

Is this possible? Any help gratefully received...

Paul.

Teridon

unread,
Mar 18, 2009, 7:44:32 AM3/18/09
to Teridon's iTunes Programs
On Mar 17, 8:06 pm, paul_craven <paul_cra...@hotmail.com> wrote:
> In an ideal world, I would like to end up with a playlist for every
> album in my iTunes library in the following format:
>
> "$Artist - $Album"

The source code is included in the zip file. However, after editing
the source, you'll have to run it using perl directly (i.e. you can't
use the provided EXE anymore). So, you'll need to have Perl
installed. Download and install

http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1004-MSWin32-x86-287188.msi


You'll need to edit "itunes_album_playlists.pl". You can use any text
editor (Notepad works fine). On line 83, change
my $album_playlist = $iTunes->CreatePlaylist("$album");
to
my $album_playlist = $iTunes->CreatePlaylist("$artist - $album");

Then, you'll need to run itunes_scripts.pl. You'll get a menu of
scripts to run, select "itunes_album_playlists.pl" (should be number
3). Then you'll be prompted to run it; type "y" then enter.

That's pretty much it!

HTH,
Rob
Reply all
Reply to author
Forward
0 new messages