You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See below and at this thread for more details on attributes to include.
@Conzpiral I'm not 100% certain this will do the trick but I think it's a good start. When the photo analysis process runs on a photo it updates a date stamp of when the analysis took place. OSXPhotos doesn't provide a way to directly access this but it can be queried using the tables() method which lets you access the underlying database tables. The following will run very slowly as it's got to run a query for every single photo in the library but it will find all photos that have not been analyzed. You can add --count just to see the total count or --add-to-album "Album name" to add the found photos to a given album.
osxphotos query --not-shared --query-eval "not photo.shared_moment" --query-eval "photo.tables().ZASSET.ZANALYSISSTATEMODIFICATIONDATE[0] is None"
The --not-shared and --query-eval "not photo.shared_moment" exclude images from shared albums and shared moments (photos shared as a group via Messages) which won't be analyzed.
If this doesn't give a result close to what you're expecting let me know and I'll dig further.
See below and at this thread for more details on attributes to include.
@Conzpiral I'm not 100% certain this will do the trick but I think it's a good start. When the photo analysis process runs on a photo it updates a date stamp of when the analysis took place. OSXPhotos doesn't provide a way to directly access this but it can be queried using the
tables()
method which lets you access the underlying database tables. The following will run very slowly as it's got to run a query for every single photo in the library but it will find all photos that have not been analyzed. You can add--count
just to see the total count or--add-to-album "Album name"
to add the found photos to a given album.osxphotos query --not-shared --query-eval "not photo.shared_moment" --query-eval "photo.tables().ZASSET.ZANALYSISSTATEMODIFICATIONDATE[0] is None"
The
--not-shared
and--query-eval "not photo.shared_moment"
exclude images from shared albums and shared moments (photos shared as a group via Messages) which won't be analyzed.If this doesn't give a result close to what you're expecting let me know and I'll dig further.
Originally posted by @RhetTbull in #1487 (reply in thread)
The text was updated successfully, but these errors were encountered: