Skip to content

Cleaning up Apple Photos Library with Python #752

Closed Answered by RhetTbull
oPromessa asked this question in Q&A
Discussion options

You must be logged in to vote

That hack is not needed. You can simply do this:

from osxphotos.photosalbum import PhotosAlbum

Now that I know people are using PhotosAlbum I'll expose it in osxphotos. It is an internal class for adding osxphotos PhotoInfo 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 by PhotoAlbum. If you're using osxphotos to find specific photos as in the blog post and add those to an album, then PhotosAlbum is what you want.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by oPromessa
Comment options

You must be logged in to vote
4 replies
@RhetTbull
Comment options

@oPromessa
Comment options

@RhetTbull
Comment options

@RhetTbull
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants