-
Based on this blog entry Cleaning up Apple Photos Library with Python is there a way in python using album = osxphotos.PhotosAlbum('Bad Photos')
album.add_list(bad_ps) without the hack explained on the blog entry? "Once we have it installed, we actually need to modify a single line in the library. Go to where the python library is installed, and modify the .../osxphotos/init.py file: Add this line: from .photosalbum import PhotosAlbum " |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
That hack is not needed. You can simply do this: from osxphotos.photosalbum import PhotosAlbum Now that I know people are using |
Beta Was this translation helpful? Give feedback.
-
By the way, you could do what that blog post demonstrates with simply writing a query function. See this example. Assuming you save the query function as
|
Beta Was this translation helpful? Give feedback.
That hack is not needed. You can simply do this:
Now that I know people are using
PhotosAlbum
I'll expose it in osxphotos. It is an internal class for adding osxphotosPhotoInfo
objects to an album. If you want to import photos not already in Photos into an album, take a look at photoscript which is used byPhotoAlbum
. If you're using osxphotos to find specific photos as in the blog post and add those to an album, thenPhotosAlbum
is what you want.