How to export organised files into folders named by geolocation and date? #1484
Replies: 2 comments 11 replies
-
That's no problem. OSXPhotos will sanitize any folder or file name to ensure it is compatible with the file system.
Remove
Some photos may not have reverse geolocation data so in that case, the template system would use the default value of There is a lot of reverse geolocation data available. See here and search for
You can do that with If a photo is in multiple albums you will get multiple copies of the photo exported. There is no way to avoid that. |
Beta Was this translation helpful? Give feedback.
-
Also, can I also run my previously exported files/folders through using an adapted script so that I can update them to the new, desired structure as well? or is there a way I could do that? (maybe just using ExifTool on its own if osxphotos can only be used with existing photo library files?) |
Beta Was this translation helpful? Give feedback.
-
Hi Rhet,
I'm impressed that you continue to develop your script, seeing templates added now - nice!
I wanted to export any further libraries into folders that are named by geolocation firstly and then subfolders that have date (year and month). AS I type this I think it would be beneficial in also naming the folders by album name instead of geolocation. However not all media will have been put into an album and may be in multiple albums so it presents a problem. the best way I keep things organised in photos app is to crate albums entitled by 'event', ie; [2024-03-02] Trip to Park. I also use the @ symbol at times to help find locations I have entitled the album with too - not sure if this causes a problem with your script or not???
My question is, is it possible to achieve this and could you give me an example please?
My current script is this (now a year old) so I will need to amend it:
osxphotos export /Volumes/T7/Temp/Temp/Photo\ LIbraries\ to\ Export/1/Media --db /Volumes/T7/Temp/Temp/Photo\ LIbraries\ to\ Export/1.photoslibrary --exportdb /Volumes/T7/Temp/Temp/Photo\ LIbraries\ to\ Export/1/.osxphotos_export.db --export-by-date --touch-file --preview-if-missing --update --exiftool-merge-keywords --exiftool-merge-persons --album-keyword --person-keyword --strip --sidecar xmp --report /Volumes/T7/Temp/Temp/Photo\ LIbraries\ to\ Export/1/Report1Offline.csv --save-config /Volumes/T7/Temp/Temp/Photo\ LIbraries\ to\ Export/1/Config1Offline.toml --keyword-template "PhotosExport>{folder_album(>)}" --keyword-template "{edited?edited-before-lightroom,}" --exiftool 2>1.log
Beta Was this translation helpful? Give feedback.
All reactions