You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to add Album name to keywords

Feel free to improve or use it as it is ...

use the. script to see in Keywords the allocation to the albums; e.g. @myAlbum, @yourAlbum

-----------

tell application "Photos"

activate

set cnt to 0

set aStart to 440

set aEnd to 500


repeat with aAlbum in albums

set cnt to cnt + 1

if not (cnt ≥ aStart and cnt ≤ aEnd) then

log cnt

else

log cnt & " Album" & (count (media items of aAlbum)) & "Bilder "


set aKeyword to "@" & name of aAlbum

repeat with aItem in media items of aAlbum

if keywords of aItem as string is "missing value" then

set keywords of aItem to aKeyword

else

set keywords of aItem to keywords of aItem & aKeyword

end if

end repeat

end if

end repeat

display dialog "fertig" buttons {"OK"} default button 1 giving up after 10

end tell

return

Posted on May 21, 2018 4:06 AM

Reply
Question marked as Top-ranking reply

Posted on May 22, 2018 9:36 AM

That is a great solution to tag all photos in all albums at once with the album name 🙂

I posted a link to your script in this list, so others can find it: Thematic Index to Photos for Mac Related User Tips:

Similar questions

1 reply

How to add Album name to keywords

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