In a Hazel workflow I need to identify if a given folder has two or more movie files.
If the folder that is watched by hazel has more than two movie files (filetypes: mkv, mp4, iso, img, m4v, vob, avi) all theese should be tagged with “grey” color. Otherwise no tag or “purple” tag doesnt matter.
Have tried modifying this script with no luck.
tell application "Finder"
{count files of entire contents of (selection as alias), count folders of entire contents of (selection as alias)}
end tell
Hazel needs following to be able to process files:
use theFile to referer to the file being processed and inputAttributes to access imported attributes
Any clues where to start?
Thanks!