I'm trying to write a code that batch renames photos. In the end each photo should be named:

AABBB1111YYYYMM 222 where

AABBB1111 defines a given place. (i.e. CAMTL = montreal and four digits define the area in Montreal.)

YYYYMM reveals the year and month that the photo was taken based on EXIF data.

222 allows for 999 photos of a given place in a given month.

That is to say,...