I was intrigued by this script and I tried running an expanded version of it, as shown below:
Code:
set theTarget to choose folder
tell application "Finder"
set jpegs to count of (every item of folder (theTarget as string) whose name extension is "jpeg")
set jpgs to count of (every item of folder (theTarget as string) whose name extension is "jpg")
set tiff to count of (every item of folder (theTarget as string) whose name extension is "tiff")
set tif to count of (every item of folder (theTarget as string) whose name extension is "tif")
set psd to count of (every item of folder (theTarget as string) whose name extension is "psd")
set cr2 to count of (every item of folder (theTarget as string) whose name extension is "cr2")
set dng to count of (every item of folder (theTarget as string) whose name extension is "dng")
{jpegs, jpgs, tiff, tif, psd, cr2, dng}
end tell
...but due to the fact that there doesn't seem to be any sort of progress indicator, I am not sure if it is even working? Will this script work if it is run on the root folder of a folder hierarchy in which all of the images are likely to be nested several levels deep inside of subfolders of the root folder? or will it only work when run on a root folder which contains images in the top level of the specified folder?
I wasn't even able to return any results other than "{0, 0, 0, 0, 0, 0, 0}"??
Any suggestions would be greatly appreciated... Thanks!