Added batch_edit.py example, [skip ci]

This commit is contained in:
Rhet Turnbull 2023-02-20 21:43:37 -08:00
parent e7e3e72f75
commit 82295513fe

View File

@ -49,15 +49,20 @@ def batch_edit(
For example:
osxphotos run batch_edit.py \
--verbose \
--title "California vacation 2023 {created.year}-{created.dd}-{created.mm} {counter:03d}" \
--description "{place.name}" \
--keyword "Family" --keyword "Travel" --keyword "{keyword}"
\b
osxphotos run batch_edit.py \\
--verbose \\
--title "California vacation 2023 {created.year}-{created.dd}-{created.mm} {counter:03d}" \\
--description "{place.name}" \\
--keyword "Family" --keyword "Travel" --keyword "{keyword}"
This will set the title to "California vacation 2023 2023-02-20 001", and so on,
the description to the reverse geolocation place name,
and the keywords to "Family", "Travel", and any existing keywords of the photo.
--title, --description, and --keyword may be any valid template string.
See https://rhettbull.github.io/osxphotos/template_help.html for more information
on the osxphotos template system.
"""
if not title and not description and not keyword: