I need to iterate through all albums/photos from the photos app, to get their name,id, directory, thumbnail url.
This question has been asked already at Iterate through photo library on OS X?
but I still cannot get it to work. Based on the code from toohtik at Programmatic access to the Photos Library on Mac OS X: PhotoKit / Photos Framework for Mac
I am getting compile error with
forKeyPath:@keypath(album, mediaObjects)
unexpected @ in code. So if you could tell me what that keypath is, or what I need to do to fix it.