I have a collection of songs and I'd like to have them played in sequence.
If I run the function
below, it will play milliseconds of each song but only the last one on the list in its entirety.
def play(*args):
for id_ in args:
print 'playing', id_
os.system("osascript -e 'tell application \"Spotify\" to play track \"%s\"'" % (id_,))
what can I add to the function
in order to tell the system
to play all song ids
(the args
) for an ammount of time t
?