I have used EXIF's Rating interval for ranking photos in my collection.
My photo collection is organized in directories in the form
YYYY/YYYY-MM-DD Description/Filename.jpg, e.g.
2020/2020-12-31 New Year's Eve/DSC_1234.jpg.
I wish to export all my photos to be printed, and used as a slideshow. To achieve this, I have tried ExifTool. This command generates quite useful filenames, as the photo print shop prints the file names on the back of the photos (and I can play the slide show alphabetically):
exiftool . -if '$Rating ge 4' -recurse -out 'export/%D - %F'
This gets me close to what I want. However, the variable %D contains the entire directory path, eg.
2020/2020-12-31 New Year's Eve, but I want all files to be in a single folder.
1) How do I avoid generating any subdirectories within the export-folder?
Also, the photo organization software I used generated backup files with a prepended period, eg.
2) How do I skip files starting with a .?
Note: I'm using ExifTool on OS X.