Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Export photos from Photos App with Content Created Date and Time as part of the text of the file name

How can I export photos from Photos App with Content Created Date and Time as part of the text of the file name?

Can I do this with Photos? If not, maybe with Automator or ScriptEditor?

Example of file name I would like - "051623-143959-Graduation.JPG" in the format of <mmddyy-hhmmss-text.JPG>

6 replies

yes, test it Script Editor, then you can wrap it into a quick action.

Select the photos in the album all together to pass them to the script. I would use a small test library before you try the script on your main library. And make a backup copy of your library.

ok, lets say I already have a collection of photos from various sources. I am collecting pictures from my co-contributors in a google drive. I then download all of them including mine just into a Folder. Can I also write a script to read the EXIF data from the files (to read the Photo Taken Date/Time) and then rename the files to contain the mmddyy-hhmmss-sequence-text-original-file-name or something like that?


I would rather not experiment with the Photos App, I think :).


Thoughts?

Also, léonie, I read your post Script: Batch Changing the Title to the C… - Apple Community

This changes the Title, but still doesn't help with my need of the exported file name to actually contain the capture date and time. With almost the same script, can one change the file name? What is the variable there? I tried filename, file_name, but didn't work. Thoughts?

Hello léonie!

I am getting this to work a bit now.

Here is what I would like - capture date-capturetime-"BR"-<original filename>.

I have most of it in the script thanks to you!

How do I get the original file name - such as IMG4311.CR2. What is the variable name for the file name?

I would love to be able to append the original filename to the Title and eventually export it so that the new filename is date-time-BR-IMG4311.JPG.

This would just help with the auditing process and ensuring I can match the exports to my original files. Thoughts?

Thanks léonie! So, I do this scripting inside the Script Editor App? Then, select the Album that I am interested in?

I'll work with my software developer wife to get this going!