I use MS OneDrive to sync photos taken on my Android phone to my Mac (they are synced to ~/OneDrive/Photos/Camera Roll). I would like to move the synced files into folders organised by Year and Month (Year/Month) that the photo was taken (or simply the file creation date).
Ideally this process would run whenever new photos are added to the Camera Roll folder.
I took a look at Automator Folder Actions, but it seems limited to only doing the exact same thing to everything that gets added to the folder (e.g. move all new items into a specific folder).
I found a PowerShell script that does exactly this in Windows, but haven't found any corresponding scripts or free apps that do this in macos.
Any suggestions?
bash
orzsh
can be easily scripted for this, see apple.stackexchange.com/questions/282270/… for a slightly different example.