stack overflow isn't very helpful as they try to convince me to use a shell script to find the movie files first
along the lines of
- Code: Select all
for f in dir/path/*.mp4
hazel can do the searching, I just need help with passing the found movies as a variable to make hardlinks
So I want hazel to search a directory for movies, date last matched is blank.
then run a shell script using the following scheme "enclosing folder movie name.mp4"
what I imagine would work is
- Code: Select all
ln -p /path/to/new/folder/enclosingFolderName$1.mp4
where $1 is the movieName, I have another script where $1 is the name of the filetype Hazel has matched.
what I do not know is how to make `enclosingFolderName` a variable either through shell or Hazel
I would appreciate any help. and if this is unclear I will try to better explain