I'd imagine it'd be something like
import os
import glob # If you are running *nix. Looks like you are
mypath = '/Desktop/directory/'
files_in_directory = glob.glob(mypath) # Creates a list of all the files in your directory
'''This a comment. If you only wanted, say text files to show up in
the list above, use this.
files_in_directory = glob.glob('%s*.txt'%mypath)'''
for file in files_in_directory: # Go through the files
os.system('open'+file) # Open them
But I am not near my computer that has Python on it so hope this helps a bit
redyugi
Junior Poster in Training
80 posts since Jul 2009
Reputation Points: 15
Solved Threads: 30