(if the movie was The Usual Suspects):
tusa.avi - (this would be part1)
tusb.avi - (this would be part2)
I was thinking I could rename the files by their last modified date.
So I was thinking about trying to sort the contents of the parent directory by date and select the first item and then run rules on it, but I am having trouble. As I am not versed in applescript here is what I have so far. Any pointers or help would be appreciated.
- Code: Select all
tell application "Finder"
set posix_parent_dir to POSIX path of (container of (item theFile) as text)
set allitems to sort (every item of posix_parent_dir) by creation date
set a to item 1 of allitems
end tell
return {hazelSwitchFile:posix_parent_dir}