Skip to content

Filename template with date TAKEN (not created) #1310

Answered by RhetTbull
jetmcquack asked this question in Q&A
Discussion options

You must be logged in to vote

YYYY-MM-DD - Title (or filename).ext

This would work for --filename to get the format you want:

"{created.date} - {title?{title},{original_name}}"

This template uses the photo creation date (again, not the file creation date, but the date associated with the photo) and then checks to see if the title is set title? and if so, uses the title, and if not, uses the original filename.

You can test templates using the osxphotos template command which gives you an interactive template editor with tab completion that will render the template for the currently selected photo in Photos.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jetmcquack
Comment options

@msg43
Comment options

Answer selected by jetmcquack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants