View Single Post
Old 16th November 2004, 20:49   #146
Thunder Pussy
Feed me a stray dog
(Major Dude)
 
Join Date: Oct 2004
Posts: 1,122
Hello, I'm doing some more experimenting and have a question: How do we randomize the results of an insert script? What I've done so far is modify the insert all from album script to make it insert all from genre.

x = playlist.getselection()

if ubound(x,1) > 0 then
mlq = medialibrary.runqueryarray("genre HAS """ + x(1).genre + """")

for each track in mlq
if strcomp(track.filename, x(1).filename) <> 0 then
track.insert(x(1).position)
end if
next
end if

quit


Thank you for your help and patience with me, shaneh. I am just beginning to learn this language. Best regards,

/edit Firefox crashed when I tried to post the formatted text so I had to post it as plain text.
Thunder Pussy is offline   Reply With Quote