views:

27

answers:

1

How can I move a song that's in a playlist to a different position within the list with an AppleScript command?

I already have the song and the playlist, and the one is already in the other; I need only to change the position.

My goal is to sort the tracks that the user has selected; ideally, I'd want to move the first-by-order track to the position of the first-in-selection track, and order all the other selected tracks immediately and sequentially after the first-by-order one.

A: 

You can't do that directly because the Dictionary shows the index property of a track in a playlist is get-only, not get/set.

The only way I see around this would be to create a new playlist, move the tracks into the new one in the order you want them to be in, then trash the old one.

Philip Regan