Photos not showing up anymore in a specific smart album that should show all photos that are not in any album

Hello there.

I had a smart album. Configuration: "Album is not in any". This showed me all photos that are not in any album. Like this I am able to keep a good overview about which photos I have not sorted.

I created a new album and accidentally selected all photos that were in that smart album. This was not my intention so I pressed 'command + z' (reverting the creation of the album).

My expectation: The smart album should show all photos again like it was before the creation of the album. Because now - after the 'command + z' (deleting the album) - the photos are again in no album.


However, the photos are not in the Smart Album anymore. I can still see them when looking at all photos, however like this it is merely impossible for me to sort because I can't say which photos are not in an album already...


Anyone knows what I could do?


I already did a repair of the database from photos which did not help.


Best Regards,

Dave

MacBook Pro 16″, macOS 10.15

Posted on May 27, 2020 11:40 AM

Reply
Question marked as Top-ranking reply

Posted on May 27, 2020 10:46 PM

I can confirm that it is still buggy, even for new photo libraries.

  • As a test, I created a new library with just one photo
  • and created a top level album with the photo,
  • I created two smart albums, one with "Album is Any", one with "Album is not Any". The result looked good - "Album is Any" had one photo, "Album is not Any" was empty.


  • Now I deleted the Test Album. The smart albums did not update, even after restarting Photos . Really weird to be seeing "Album is Any" with one photo and "Album is not Any" emppty, if there is no album at all.
  • The old work-around is still working. If I duplicate the photo and delete the original, the smart albums are back to normal for the duplicates. Only the thumbnails of the albums do not update, but the numbers of photos are correct.

Similar questions

32 replies
Question marked as Top-ranking reply

May 27, 2020 10:46 PM in response to markwmsn

I can confirm that it is still buggy, even for new photo libraries.

  • As a test, I created a new library with just one photo
  • and created a top level album with the photo,
  • I created two smart albums, one with "Album is Any", one with "Album is not Any". The result looked good - "Album is Any" had one photo, "Album is not Any" was empty.


  • Now I deleted the Test Album. The smart albums did not update, even after restarting Photos . Really weird to be seeing "Album is Any" with one photo and "Album is not Any" emppty, if there is no album at all.
  • The old work-around is still working. If I duplicate the photo and delete the original, the smart albums are back to normal for the duplicates. Only the thumbnails of the albums do not update, but the numbers of photos are correct.

May 27, 2020 9:20 PM in response to DanteToTheK

Which dot release of Catalina are you running? Some of the users here have noticed a bug in Catalina that shows up similar to what you describe. If an album is deleted while it contains photos, those photos never get back into the "in no album" state (whether it's a count or a flag), breaking smart albums to detect unfixed photos. It is not unreasonable to think this bug could also be triggered by cmd-Z on album creation.


I do not know if anybody has tested the very newest Catalina 10.15.5 (with Photos Version 5.0 (151.19.150)) to see if it still has the bug.


I am unaware of any way to fix the photos affected by the bug other than restoring the whole library from a backup taken before the deletion of the non-empty album.

May 28, 2020 12:10 PM in response to DanteToTheK

I have no idea, Dave. It will run a very, very long time because of the changes in Catalina. Just to create the list of all albums is now taking hours. I could finish my income tax declaration while waiting for the script to create the list of all albums and folders.

Let it run over night.


It would really be easier to simply add a keyword "in_Album" to each photo in an album. We can easily select all photos in an album with ⌘A and then type the keyword into the Info. Then we can use a smart album "keyword is ...".


Jun 14, 2020 9:14 AM in response to léonie

Thanks - this workaround can be a little labourious, but it works. I have about 15000 photos to place in folders so after adding the Keyword 'In-Album' to all existing pics in albums I went through the whole new Smart Album, (Keyword > is not > In_Album), and stuck to adding to only 2 Albums. After this I added the Keyword to all the pics in these 2 Albums, and when I opened the Smart Album again, there were about 1200 fewer pics in there. Bingo!

And thanks again Leonie.

Jun 24, 2020 11:14 PM in response to Community User

Yes, GMG_Consulting, it did work at some point and now doesn't work for any photos that were in albums at the time the albums were deleted (under certain Catalina releases). Photos has lost track of how many albums those photos are in. User léonie has outlined above the only know recovery method, which is going to be painful if all of your photos are affected.

May 28, 2020 2:17 AM in response to DanteToTheK

None of the older scripts that we published for finding the album a photo is in, is working right now with Photos 5 on catalina.

In particular this phrase:

set names to name of (albums whose id of media items contains pictureId)


We can no longer simply request Photos to return a list of all albums containing a certain picture or even a list of all albums, including the albums in folders. We have to write a recursive loop to collect all albums inside a folder, then recursively do the same for all subfolders. It is tedious and slow as molasses.

I tried to write a script to find all albums o photo is in, that would work on my Photos Library - it took hours to run: see

I gave up on scripting albums for the time being, after writing these two scripts: These scripts can give an idea, how to check all photos for the album they are in. It is messy.

May 29, 2020 6:06 AM in response to DanteToTheK

There is a big difference here: I was searching for only one photo, not the whole Library, which could easily account for lengthy searches.


My search was needed because one of my Smart Albums was not showing the expected results of photos not being in an Album. I couldn't find which Albums they were in. However, since playing around with Léonie's script, the problem seems to have gone away. Could the search have reset a flag somewhere? I don't know.


Hope this helps.

Stephen

May 27, 2020 11:22 PM in response to léonie

Wonderful, thank you very much for your fast reply.

Hey, Léoni, I took a script from you and adapted it. I am not really sure if it works since I am not used to Apple Script language.

I think the script could solve the problem instantly: My Goal with the script:

  1. Get all photos that are currently NOT in any album (I tried with another script => the photos not showing in the smart album are detected with a script)
  2. Put all these photos in an new album


=> When I have this, I can export all these photos from that album, delete the originals and re-import and the problem should be solved.

What do you think?


I attached the script I adapted from you - not sure if it works at the moment, but if you would have time, it would be nice if you could have a look at it and give me some feedback.


Best Regards,

Dave


May 28, 2020 2:36 AM in response to léonie

Thank you very much for your response.

Hmm that is unfortunate, that such things are not available anymore.


So my script would be 'correct', but the specific line 'set names to name of (albums whose id of media items contains pictureId)' is not valid anymore?


And rewriting it quickly is not possible as much as I understand?


I mean I don't care if it takes 10 days until the process is finished --- in the end without a script I will have no chance to find out which photos are not in any album at the moment.


Or do you have any other suggestions?


Best Regards,

Dave



Ah and BTW: I tried out the script from Jacques Rioux's => It works for me, that it can tell me in which albums a photo is (given that I put it in a toplevel album).

That is why I don't understand, why my script shouldn't work?

I mean it is exactly the same syntax: set names to name of (albums whose id of media items contains pictureId) - or what am I missing?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Photos not showing up anymore in a specific smart album that should show all photos that are not in any album

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.