automator or script to create folders based on file names and move files
Hello,
i had a clunky script set up where i could select a list of files and they would be moved to existing, or new folders based on their filenames, but two Macs and 3 versions of OSX later i seem to have lost it.
i deal with image and video files which i organize by year, month, and date.
"real" camera downloads are dealt with daily and not an issue, but every month i do a phone dump, so i could have a few hundred files to organize.
file names could be the following:
2019_11_23_5432.jpg
2020_01_30_2345.jpg
2020_02_02_2765.jpg
2020_02_02_2766.jpg
2020_02_03_2795.jpg
at a minimum i'd like each file from the same date put into a folder named for that date.
2019_11_23
2020_01_30
2020_02_02
2020_02_03
multiple files (like 2020_02_02... above) would go into the same folder obviously.
previously i had a script cobbled together where i could select all, run the script, and sometimes it would choke if there were multiple files on the same date, sometimes it would sail through perfectly, i could never figure out why sometimes it stopped early, usually manually moving one file and then re-running the script worked.
MacBook Pro 13", macOS 10.14