add a script to select and open text files