Create m3u file for selected audio files

Discuss and share scripts and script files...
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Create m3u file for selected audio files

Post 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);

stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

Re: Create m3u file for selected audio files

Post 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

Post Reply