Link to home
Start Free TrialLog in
Avatar of Icewolfx
Icewolfx

asked on

Simple music sorting script.

Hey, I was wondering if it would be possible to make a script that would half-automate the process of sorting out my hundreds of music files. Basically, I want to sort them out into folder, depending what their style is(i.e. soothing, thrilling, suspenseful, happy, etc.). Simply put, I want it to do this:

Play a random thirty seconds of the first music file in the folder, during which time I can press a key that will move it into a folder(when I press "s", it goes into the suspeneful folder). As soon as I press the key, it moves on to the next music file, playing another random thirty seconds from there, and again, I press the appropriate key to move it into the appropriate folder.

I would prefer the script be something that I can just use(i.e. an sh script), but if my requirements need another language, then the requirements should come first. For the music player, it can be whatever will work with mp3 files, I'm willing to download another(linux compatible of course).

Thank you for your time.
Avatar of Kelly Black
Kelly Black
Flag of United States of America image

What have you gotten so far? Do you have any scripting going and need help with it? Do you need a developer to do this for you?
Avatar of Icewolfx
Icewolfx

ASKER

I have tried some basic scripts, but I have neither the expertise nor the time to dedicate to this. It would be great if the script was just made, otherwise, pointers to exactly the right functions will be accepted.
ASKER CERTIFIED SOLUTION
Avatar of Arty K
Arty K
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It might work, but the problem is that the music titles contains special characters and spaces, so that the script neither plays the file nor moves it into the appropriate directoy. An example of the filenames is:

Zone\ Of\ The\ Enders\ -\ Konami\ -\ Flowing\ Destiny\ (Resolution)\ (0-45).mp3

If anyone could tell me how to modify the script to make it work properly with those names, that would be fantastic. Thanks.
Cancel that, I figured it out. For those interested, I simply put $file in double quotes(i.e. mv "$file" $where_to_move).

It looks like the script is working out fine. Thank you so much :).