MacOS script to open all files in a directory

The following script will open all files of type


in the directory it is placed. Save as a


file and make executable:

#open all files of a certain type

mydir="$(dirname "$BASH_SOURCE")"

    for f in $FILES
        open -a TextWrangler $f
        echo $f
Creative Commons License
This work by pete is licensed under a Creative Commons Attribution 4.0 International