Zeitpunkt Nutzer Delta Tröts TNR Titel Version maxTL Fr 27.09.2024 00:01:07 62.134 +2 3.741.982 60,2 Fosstodon 4.2.12 500 Do 26.09.2024 00:00:18 62.132 +5 3.738.514 60,2 Fosstodon 4.2.12 500 Mi 25.09.2024 00:00:21 62.127 +15 3.744.145 60,3 Fosstodon 4.2.12 500 Di 24.09.2024 00:00:00 62.112 +2 3.741.205 60,2 Fosstodon 4.2.12 500 Mo 23.09.2024 00:01:00 62.110 +2 3.738.117 60,2 Fosstodon 4.2.12 500 So 22.09.2024 00:00:08 62.108 -1 3.735.426 60,1 Fosstodon 4.2.12 500 Sa 21.09.2024 00:00:59 62.109 +4 3.732.963 60,1 Fosstodon 4.2.12 500 Fr 20.09.2024 00:00:06 62.105 +3 3.729.688 60,1 Fosstodon 4.2.12 500 Do 19.09.2024 00:00:14 62.102 +6 3.726.787 60,0 Fosstodon 4.2.12 500 Mi 18.09.2024 00:00:21 62.096 0 3.723.273 60,0 Fosstodon 4.2.12 500
Rhet Turnbull :python: (@RhetTbull) · 11/2022 · Tröts: 518 · Folger: 133
Fr 27.09.2024 19:26
@atpfm If you don't mind using python instead of perl, you can call osxphotos in your own code. Here's a simple script that processes the selected photos. Run with python or via `osxphotos run script.py`
"""Sample query command for osxphotos to process selected photos""" import osxphotos from osxphotos.cli import selection_command, verbose @selection_command def main(photos: list[osxphotos.PhotoInfo], **kwargs): """Sample command for osxphotos. Prints out the filename and date of each photo currently selected in Photos.app. Whatever text you put in the function's docstring here, will be used as the command's help text when run via `osxphotos run cli_example_1.py --help` or `python cli_example_1.py --help` """ verbose(f"Found {len(photos)} photo(s)") # do something with photos here for photo in photos: verbose(f"Processing {photo.original_filename}") print(f"{photo.original_filename} {photo.date}") # rest of your code here ... if __name__ == "__main__": main()
[Öffentlich] Antw.: 0 Wtrl.: 0 Fav.: 0