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: For example:
osxphotos run batch_edit.py \ \b
--verbose \ osxphotos run batch_edit.py \\
--title "California vacation 2023 {created.year}-{created.dd}-{created.mm} {counter:03d}" \ --verbose \\
--description "{place.name}" \ --title "California vacation 2023 {created.year}-{created.dd}-{created.mm} {counter:03d}" \\
--keyword "Family" --keyword "Travel" --keyword "{keyword}" --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, This will set the title to "California vacation 2023 2023-02-20 001", and so on,
the description to the reverse geolocation place name, the description to the reverse geolocation place name,
and the keywords to "Family", "Travel", and any existing keywords of the photo. 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: if not title and not description and not keyword: