Random Opener +

Open a random file in a given directory.

Unlike the original version of Random Opener, Plus version makes a suffle datafile so no file gets opened twice unless all of them have been opened

To install just download here and doble click the .alfredextension file. Then you MUST specify the directory from which the files are gonna be chosen in the “DIR” variable.

DIR=“/path/to/directory/”

Optionally specify other place to store the shuffle file in the “shuffleFile” variable.

shuffleFile=“/tmp/randomOpener.dat”

To run just type “random+” in Alfred bar. A random file within the given directory will be open and will not be randomly selected unless every other file has been opened.ar. A random file within the given directory will be open and will not be randomly selected unless every other file has been opened.

Reset and count options also available.

image

Update: new “current” command to open random file in current Finder Window.

Update 2: better setup now!
To setup your directory just type “randomsetup <full_path_to_your_directory>”, or even better, type only “randomsetup” and your frontmost Finder window’s open directory will be selected.