applescript get all files in folder with extension code example
Example: applescript get all files in folder with extension
tell application "Finder" to select (every file in the ¬
front Finder window whose name does not end with ".jpg")
tell application "Finder" to select (every file in the ¬
front Finder window whose name does not end with ".jpg")