Question

as a "switcher" I have discovered one functionally that I like in Windows and I don't see in Mac. I want to play all the media files in a folder with VLC with the right click and "Play all" but in this case I need to first open VLC, then click in "Open" and then browse through the folders to finally play the files. Is there any way to play a entire folder with only the right button?

Thanks in advance, best regards.

Was it helpful?

Solution

It doesn't appear possible to do something like VLC folder/ folder2/ from the command line. Instead I've successfully created an Automator service that generates a playlist and launches the application passing the list to it.

Here is the service... VLC Service

To include subfolders enable the option Repeat for each subfolder found in the first action shown above.

To save you the typing, the shell script code is as follows,

# Create playlist
PLSFILE=/tmp/VLC_`date +%s`_$$.m3u
cat > $PLSFILE

# If file empty just exit
[ -s $PLSFILE ] || exit 0

# Remove following if you want to add to list instead of replacing it
killall VLC && sleep 1


# Launch VLC with our new playlist
open -a /Applications/VLC.app/Contents/MacOS/VLC $PLSFILE --args --playlist-autostart

The shell script will do nothing if Finder doesn't find any media files. If VLC is already playing, it will add the files to is existing list. Check the VLC documentation for more information on available options.

Finally you can launch it by right clicking on a folder and then select Services...

VLC Service Launch

Hope that helped.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top