27th August, 2008

Creating playlists for your music by folders structure   

Posted in random | by eitama |



Recently I was looking into ways to control music being played on the computer
from my N95,  I wrote an application that connects over bluetooth and wifi to your computer

and send signals to the computer…
One of those signals is load XXX playlist, as i currently have more then 50 folders of music,
I was looking for a script to generate a playlist for each folder. (Winamp playlist).

But, I could not find one, so I wrote one :)
(Written in tcl, run this inside your music folder)
|proc itterateFolder {} {
|    set rawFolders [glob -type d *]
|    set folders []
|    set root [pwd]
|    foreach x $rawFolders {
|        if {[regexp -- {[a-zA-Z0-9]} $x]} {
|            cd $x
|            puts [pwd]
|            catch {exec cmd /c dir /b *.mp3 > $x.m3u}
|            if {![catch {glob -type d *}]} {
|                itterateFolder
|            }
|            cd $root
|        }
|    }
|}
|
|itterateFolder

Cheers.
EItam.



There are currently 2 responses to “Creating playlists for your music by folders structure”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On September 27th, 2008, evilbitz said:

    Cool man, I love to see you progress :-)
    just half a year ago you didn’t know anything about programming and suddenly you are making software for N95!

    I loved RemoteBT as well, why don’t you upload it?

    Guy.

  2. 2 On September 30th, 2008, eitama said:

    Thanks mate!
    It was pretty easy (:

    RemoteBT is cool – but installing it is hell.
    Oh well, i’ll post it anyway for the tough ones.

Leave a Reply

You must be logged in to post a comment.

Top »
"If you can't join them, beat them!"
Search Evilbitz: