|
Rockbox mail archiveSubject: Re: .VBS Script, or Feature request, or Something....Re: .VBS Script, or Feature request, or Something....
From: Brian Wolven <brian.wolven_at_verizon.net>
Date: Thu, 08 Apr 2004 19:05:49 -0400 Jason Canada wrote: > Here's my dilema, I use a dir structure that has, as the first directory, a > "1 - Playlists" directory. I keep playlists under there by genre that > correspond to the full albums in the other directories... I currently move new > music into my JB and then open Winamp, create playlist for each directory, and > save them to the aforementioned 1 - playlist directory. This is a tedious > process... Is there a way to automate this either through a .VBS script run > externally or through a process in the menu?? I guess what I am looking for is > an auto-generating playlist function that will make me a playlist for each > individual directory that has some .mp3 files in it.... > Sorry for the ridiculously long first post, but I appreciate what > you guys are doing here and I have spread word of your good deed far and wide > among the geeks here in the cube farm. There are now 5 of us rocking our Boxes Scripts to do the above, plus a couple of other playlist tricks, are now at: http://mysite.verizon.net/brian.wolven/Rockbox/PlaylistScripts.zip From the comments (sorry if this wraps ugly): ------------------ ' MP3List.vbs ' - A script to recursively generate an m3u format playlist of all mp3 files in ' a directory tree. Folders can be selected by ' 1) Dragging a folder onto the script in the file manager ' 2) Input through a dialog box ' 3) Command line, e.g., wscript mp3list.vbs "M:\Music Files" ------------------------- ' dirList.vbs ' ' A script to recursively generate an m3u format playlist of each album in a ' genre, assuming that you organize music by genre/artist/album. M3U files ' are sorted into folders by genre name, and then named as ' <artist> - <album>.m3u. Genre folders can be selected by: ' ' 1) Dragging a folder onto the script in the file manager ' 2) Input through a dialog box ' 3) Command line, e.g., wscript dirlist.vbs "M:\Music Files\Classic Rock" ' ' The folders containing the playlists are created in the same directory as ' this script, so place this script in the folder where you want to build the ' set of playlists! The resulting structure will then be: ' - Genre1Folder ' Artist1 - Album1.m3u ' Artist1 - Album2.m3u ' Artist1 - Album3.m3u ' Artist2 - Album1.m3u ' Artist2 - Album2.m3u ' Artist3 - Album1.m3u ' ... ' - Genre2Folder ' Artist1 - Album1.m3u ' Artist2 - Album1.m3u ' Artist2 - Album2.m3u ' Artist2 - Album3.m3u ' Artist3 - Album1.m3u ' ... ' ' and so on. -------------------- ' CleanList.vbs ' ' - A script to "clean" an m3u format playlist, namely: ' ' 1) Remove unnecessary info, e.g. WinAmp #EXTINFO lines ' 2) Convert leading portion of path name to format that works on both ' hard drive(s) and removeable device, e.g., an Archos recorder. ' 3) Provide a warning if a file is not found in either the original or the ' 'cleaned' location, i.e., broken playlist entry. ' ' Just drag a playlist onto the script in the file manager and it will be ' replaced with the cleaned version. ------------------- Make sure you check the paths in the last script before using it, or you may be sorry. Make backups of your playlists if you're not sure! The ones you need to customize are: PatternC2M = "C:\\Music\\Music Files" ' Potential path for playlist tracks (PC) PatternJ2M = "J:\\Music Files" ' Another potential path (Archos) PatternNoM = "\\Music Files" ' Yet another potential path (winamp) DesiredStr = "M:\Music Files" ' What we wish for the 'cleaned path' The double slashes in the Pattern vars are there on purpose - they are used in a regular expression. The last one (DesiredStr) is not. _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockbox Received on 2004-04-09 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |