I'd need an action to fill the YEAR field from the folder containing the file. The format of the folder is like the following, so I'd need to copy the four first characters:
2019 Dummy folder
I've tried adapting a similar action I use to fill ALBUM from the same kind of folders (and it worked, deleting the first 4 numbers plus the following space), but it doesn't seem to work when I try it with YEAR. Allo I got was having the field filled with word "YEAR" or the name of the folder with the first 4 chars replaced by "dddd".