You are here: Home robotic thoughts... 2009 January 24

24

Jan 24, 2009

AppleScript + Party Shuffle Pt. II

Filed Under:

We're back for another round of AppleScript and Party Shuffle. Last month I wrote about adding missing party shuffle features using AppleScript. I noticed that there was one issue with the scripts. If you selected an album that had multiple discs then it would add all the discs to the party shuffle ordered by track number. So for example, you have an album that has two discs with three tracks a piece. Then you would get this:

Disc One Track 1
Disc Two Track 1
Disc One Track 2
Disc Two Track 2
Disc One Track 3
Disc Two Track 3

This is obviously not what we wanted. I spent a little time today updating the scripts so that they behave correctly. Now if you select the same album as our example above this is what you will get:

Disc One Track 1
Disc One Track 2
Disc One Track 3
Disc Two Track 1
Disc Two Track 2
Disc Two Track 3

This of course assumes that you have properly set up the disc number and disc count for your tracks. I'm pretty anal about this kind of stuff, so my library has them all set (even Disc 1 of 1). If the disc count is not set then the script will assume that there is only one disc and won't go through the disc sorting routine. You can get the latest scripts here: