Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Mac across the room hooked up to a big monitor. I do a lot of programming on a Linux netbook, and have lots of terminals open. It'd be nice if I could run a script called something like "add2vlc" which would take a file and push it on the end of the VLC playlist.

Is there any way of doing this?

On Windows and Linux, you can call vlc (or vlc.exe) with --playlist-enqueue. But /Applications/ cannot be called with --playlist-enqueue.

I see that in /Applications/ there is all sorts of Lua code to script VLC, but I don't really know Lua and can't seem to find documentation that describes how I might use this code to add stuff to the playlist.

If I enable VLC's RC module, VLC doesn't start. Neither does it start with the ncurses controller. Do I need to recompile VLC to get this?

share|improve this question

Edit: Leave that, here is something promising

Basically, you first enable the RC interface from the advanced options, restart vlc and start sending commands over the socket you setup. Check out the pretty pictures in the blog.

I have tested this with my VLC 1.1.5 and it seems to be working

share|improve this answer

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):



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

File2=File1=C:\Documents and Settings\user\My Documents\My Music\f2.mp3
share|improve this answer
That might work because I have noticed that VLC seems to add everything you play to playlist (until it is restarted). – Synetech Nov 25 '12 at 18:10

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.

share|improve this answer
up vote 0 down vote accepted

I've found that most of what I need to do can be done with AppleScript. I've made a little VLC control script in Ruby that uses RubyOSA. Basically, all I want to do is play/pause and add stuff to the playlist. I've put it up here: vlc-control.

share|improve this answer
The link seems to be broken. Has it moved? – Kurtis Nusbaum Jul 17 '12 at 20:11
Appears to be at – DrHyde Feb 18 at 17:02
Yes, alas Bitbucket removed the custom domain stuff. – Tom Morris Jul 7 at 16:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .