-
Hi there, my use case is the following: For that I use '```from_date```` to find photos from the day before. I tried to find an appropriate in the doc but it seems there is no such attribute available.
Thanks a lot, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
@Hafur there's not currently a way to access the date added. It won't be hard to to do this so I'll add it to the to-do list. The relevant data appears to be in However, for your use case, Note |
Beta Was this translation helpful? Give feedback.
-
@Hafur In the latest version on Github I've added a PhotoInfo.date_added attribute. It returns a timezone aware Caveats:
If you use this and have any feedback, let me know! I'll get this into the next release. |
Beta Was this translation helpful? Give feedback.
-
btw: the new attribute |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
@Hafur there's not currently a way to access the date added. It won't be hard to to do this so I'll add it to the to-do list. The relevant data appears to be in
ZGENERICASSET.ZADDEDDATE
but I'll have to do some testing to confirm.However, for your use case,
osxphotos export --update
may get you close.--update
exports only the photos not previously exported, thus if you run this every day, it would only export those photos added the previous day.Note
--update
stores state information about the backup / export in a file called.osxphotos_export.db
in the export directory. So this approach only works if you're nightly backups are all in the same directory.