Script for opening an indexed file within a directory.