PDA

View Full Version : Launching playlists by number



Amok
October 13th, 2002, 12:55 PM
hmm.. what? :wink:

ombre42
October 13th, 2002, 12:55 PM
the "sending playlist to musicmatch/winamp" topic was getting a little bloated so here goes...
I thought the idea of having playlists named pl001.m3u pl002.m3u was retarded and so I wrote this batch file...
First I'd like to mention it makes heavy use of command extensions which are available on Win2k and XP only (I was using the XP help system so I hope I didn't use any XP only new features and I seriously doubt it will work on NT4).

OK what the batch file can do...
*Play the Nth playlist in your directory of playlists
*Keeps track of last playlist played (by number)
*Skip forward or backward N playlists
*Play a random playlist in the directory
*List the playlists showing the corresponding numbers
**note that the batch file orders the playlists in the order that you would see doing a directory listing sorted by filename

Here's what it can't do but could be modified to do:
*play playlist 009, must be 9 (this isn't a problem if you are using the Girder numeric registers)
*currently only finds m3u files, but could be any kind of file if you edit it
*loop around (currently if you go 5 playlists forward and you are on the second to last, it just loads the last plalist (same for going backward)
*find you a girlfriend

here's the output with no arguments:
simple playlist control by Kevin Ormbrek

usage: m3uctrl [-scan] { next | prev } [ $skip_by$ ]
m3uctrl [-scan] play { $album_number$ | current }
m3uctrl [-scan] random
m3uctrl [-scan] list
m3uctrl -? more help

To use in girder use the Execute action in the Windows category: browse to the batch file and for stepsize do something "play [reg5]" or "next 5". I recommend start minimized.

Get it!! http://my.core.com/~candles/m3uctrl.zip

I wrote this because:
1. I wanted to see how far you could go with a batch file and no utils, i.e. unix file utils such as grep,cat,etc. I missed writing bash scripts in linux the whole way, btw
2. See if I could write a serious batch file-it's my first so feel free to flame me or my code :smile:

Hope you can make use of it,
Kevin
_________________
Girder rulez! What can't it do?
**I use X-10 Univ.Remote(UR47A) and PC Rcv.(MR26a)via Gen. Serial Plg. under WinXP

<font size=-1>[ This Message was edited by: ombre42 on 2002-01-25 13:08 ]</font>

ombre42
October 13th, 2002, 12:55 PM
<font size=-1>[ This Message was edited by: ombre42 on 2002-02-03 00:54 ]</font>

ombre42
October 13th, 2002, 12:55 PM
bump me up
still waiting for feedback, hoping someone can make use of my work or at least learn some of the batch file tricks used here