-
masscode
@cvp
Oh that’s a pity, but it makes sense.
Thank you for your insight! -
masscode
Thank you for the beautiful solution to my previous question:
https://forum.omz-software.com/topic/7129/get-all-photos-including-hidden-photos-in-a-specific-album/3I have a subsequent question.
I have a need to hide/unhide a lot of images in my Photos app rather frequently. Unhiding is not an issue, but there is a confirmation dialog box when hiding an image by script, which requires me to tap for each image.
Is there a way to override this and suppress it?import photos if __name__ == '__main__': assets = photos.get_assets(media_type="image", include_hidden=False) assets[-1].hidden = True
-
masscode
@cvp
This is beautiful!!! Thank you!!!
I will read up about these modules and study. -
-
masscode
Hey guys,
I am trying to get all photos in a specific album including all hidden photos.
But the the code below does not include hidden photos:for album in photos.get_albums(): if album.title == "album title": assets = album.assets break print(len(assets))
and the code below includes all photos outside the target album, so it doesn’t serve my purposes either:
assets = photos.get_assets(media_type='image', include_hidden=True) print(len(assets))
Any idea how I can achieve this?
Thanks!