Sorry for the title, but I’m at a loss for a more simple/clear subject title ![]()
Let me explain my goal…
(I’m playing with 10.3.9 & iTunes 5.x)
I’m trying to create a subroutine that will modify a given track list upon user modification. For example, you have a song track list in random order {4,6,3,1,2,5}. The track list is in a repeat loop like…
repeat with i in {4,6,3,1,2,5}
set x to i
play track x of current playlist
delay x amount of time
end repeat
iTunes will play track #4, then #6, etc, until it plays track #5 last, IF you don’t touch the iTunes direction buttons (rwd, ff).Let’s say you don’t like tracks 6 & 3, after track #4 ends you skip over them to listen to track #1. When track #1 finishes playing, instead of going to track #2 (the next track of the playlist), it plays track #6 because of the repeat loop.
I’ve been trying to write a subroutine that would modify the track list (by removing the skipped tracks) and re-inserting the modified track list into the repeat loop. Using my example: original track list {4,6,3,1,2,5} ; listen to track 4; skip tracks 6 & 3; listen to track 1; modified track list {2,5} (songs not yet played).
Now re-insert {2,5} into repeat loop.
I hope my problem makes sense.
I’ll greatly appreciate any help! ![]()