GP SoftwareTwitter
Opus FAQsManualCommandsObjects

Play All Movies - Generate and Open Playlist for Current Tab

Name: Play All Movies

Type: Script for Directory Opus to define the new command PlayAllMovies.

License: CC0 Public Domain by


I made this script to make it easier to watch videos displayed on a tab but that are scattered over multiple directories.

My main media player is able to, with a button push, play the previous or the next file that is on the same folder of the currently open file.

Directory Opus supports "virtual directories" (collections, find result, flat view). After opening a video file from one of these, it wasn't possible to jump to the next one easily from the player.

This script solves that problem.


The scripts adds the new command PlayAllMovies.


Directory Opus version >= ???.

Any video player with support for .m3u playlists registered as the default program for the movie files you want to play. The player does not need to be registered as default for .m3u playlists, it only needs to be able to read them.

(Tested with Media Player Classic on Windows 10.)


It is distributed as a .js file. Install it by the usual means.


There should not be the need for you too change anything before executing the script.

You have the option to set a specific player to be used with this command, in case you are using Opus as a portable program and/or if there is not a default player on the system.

Use the configuration window to change the script's behavior.


Set the command PlayAllMovies as an action triggered by whatever event you desire. I choose to have it for the 'dblclk' action (File Type > Movies > Events > Left double-click).

One file needs to be selected for the command to work.


Follow the development of this script at the Directory Opus Forum or on GitHub.

From Directory Opus Forum:
Play All (2.2 KB)

From GitHub:
Page for the latest release.

1 Like