Page 1 of 1

Create m3u file for selected audio files

Posted: 04 Nov 2009 18:08
by serendipity
Here are two scripts:
Script #1 creates a m3u file which has to be stored in the same folder as the audio files.
Script #2 creates a m3u file which can be copied anywhere else.

Script #1 is useful if you carry audio files on USB or move folder/files elsewhere.
Script #2 is useful if you want to store all M3Us in one place.

Script #1:

Code: Select all

/*
Write (Writefile) m3u file based on current selection (getinfo("SelectedItemsNames")). 
<curfolder>=m3u filename is name of the folder. 
o= Older m3u file with same name is overwritten.
*/
  Writefile ("<curfolder>.m3u", getinfo("SelectedItemsNames"), o);
Script #2:

Code: Select all

//For storing m3us other than the folder of audio files
  Writefile ("<curfolder>.m3u", getinfo("SelectedItemsPathNames"), o);

Re: Create m3u file for selected audio files

Posted: 08 Nov 2009 04:01
by stanmarsh
thank you serendipity, i found out that you can also use it to create a movie list quickly, very useful for those segmented youtube videos.

small request :)

would it be possible after creating the m3u, it would open the playlist automatically in vlc or another player?

thanks