Description: Hi all! This script is dedicated to all the people, like me, that have a mp3 cd player in their car. The idea was born because I found really boring to create a playlist choosing between giga and giga of mp3. So, I thought: and if I create automatically a compilation? Here is the script! The script work in this way: starting from a directory used as well for my most played mp3 the script create a text file containing the mp3 listing. After that, looping through the list, the script calculate the mp3's size and the residual project size (setted in the profile file) until the mp3s are all copied or (in RANDOM order: there's a little random number generator that, starting from the overall file number, select randomically the mp3 files) the mp3s' size reaches the project size. Furthermore, the script checks, when the remaining space is under a certain threshold, if there's a mp3 which size fits the remaing space on project. The only dependencies is to install nawk and, of course, edit the profile file, in order to match your /path/to/mp3/files. Everyone can modify the scripts! I ask only one thing: please leave me a message about your modifications.
Happy listening. JeexLast changelog:
14 Nov: switched to Zenity interface (selection e new folder creation)
Added zenity progress bar
Now search, in a given folder, all mp3s, including subdirs.
hi Jeex,
thanks really for the tricky ;)
The script is useful, but little cryptic to modify imho, by the way doesn't seem to have any needs to do it.
Thanks, i'll update some other comment as soon as i try in the car :)
Cheers!
Ratings & Comments
2 Comments
hi Jeex, thanks really for the tricky ;) The script is useful, but little cryptic to modify imho, by the way doesn't seem to have any needs to do it. Thanks, i'll update some other comment as soon as i try in the car :) Cheers!
Tnx a lot for the comment! I'm very glad you like it! If you have any doubts about it, don't esitate to write to me! Have a nice day!