How do I add files to a VLC playlist from the command line on OS X?

Solution 1:

Just came across this old post.

I don't know about Macs but on Windows you can run the following to have a playlist:

vlc.exe file1 file2 

(You would typically need quotes on Windows. "file1")

Alternatively, create a .pls file and specify that when starting vlc.

vlc.exe --config vlcrc playlist2.pls

An example playlist file (playlist2.pls):

[playlist]

NumberOfEntries=2

File1=C:\Documents and Settings\user\My Documents\My Music\f1.mp3
Title1=f1

File2=File1=C:\Documents and Settings\user\My Documents\My Music\f2.mp3
Title2=f2

Solution 2:

I have tried all keys from "a to z" and "A to Z", and I found that if you press B (capital b) you will find a "file browser", so you can add files from there.

That worked for me.