Create Albums from Tags in Metadata in Photos for the Mac

I had created metadata tags for all of my photos before I had them imported into photos for the Mac. I would like to auto create albums based on the tags in the photos.

I know I can do this with SmartAlbums, but those don’t transfer to mobile or other Macs so I need real albums.

I was thinking with AppleScript I could do something but not proficient there.  Maybe created the Smart Albums from the tags then create albums from all the smart albums?
LVL 3
Scott TownsendIT DirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Eoin OSullivanConsultantCommented:
Scott
There is some limited scripting with AppleScript possible in the Photos Application but it isn't possible without some fairly heavy Script and ObjectiveC knowledge.

The Photos application uses a folder format to store the photo images and albums so it IS possible to script the import process to create albums when the images are being imported (based on folder names)
https://github.com/codez/ImportPhotoFolders

HOWEVER if you've Smart Albums setup I'm afraid I cannot see any way to automatically convert them to regular Albums, in fact others have asked the question ..
https://discussions.apple.com/thread/7009857
https://discussions.apple.com/thread/2413777

The only solution would be a bit of a hack to use something like QuicKeys (http://startly.com/products/quickeys/mac/4/) where you could set a series of key commands to speed up the process.  I'd bet though that the process is not going to speed you up significantly

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott TownsendIT DirectorAuthor Commented:
Thanks!  A bit more involved than I hoped...
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
I'd personally use PERL so the script so album generation was portable.

Code would roughly take this form...

1) Collect tags by pulling them via EXIF tags or a related file (maybe photo.tags) or maybe even from image name or date or other various tags.

2) Sort all tags generated, throwing out duplicates.

3) Create named albums required.

4) Populate albums with photo names.

5) Note: I'd populate pseudo albums with symlinks to original photos + maybe even set permissions on pseudo albums where photos in these albums couldn't be modified... because... Apple photo management programs tend to be very stupid, so if you symlink to a real photo allowing write permission to the symlink, most Apple + many 3rd party tools will create modifications which live in the pseudo album, rather than relate to original photo.

This creates a massive library problem, if you have photos in 12x different albums + you accidentally change the photo in 3x different albums, which will give you the original image in main album + 3x changed photos with no good way to manage all these changes.

This may or may not be what you expect.

Normally, I tend to like only one single copy of every photo + if I change that photo, I like to know exactly where that photo lives, to be clear about every photo.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Images and Photos

From novice to tech pro — start learning today.