socraties

Q: How can I identify which albums photos are assigned to in Photos.

When I view a photo in the Photos stack or in any album, I would like to be able to identify the albums it has been assigned.  Does anyone know how to do that?  Please understand that I know how to use a smart album to find Unassigned photos, but how to you find albums assigned to photos? 

 

And explanation as to why:  It's a very important tool for me to remain consistent in 'filing' photos away and being able to verify they have been filed properly.  And it might be a surprise to Apple, but I do not think in terms of date/time/gps when using my photos program.  Those are meaningless delineations to me, although they can be useful flags for secondary info in the metadata.  Many photos over the years were and still are received via mail or scanned and do not have an appropriate date or gps location attached.   Faces is useful, but viewing 5k pictures of 'mom' without knowing which album they are in, is not helpful.

iMac, OS X El Capitan (10.11), 3.1Ghz i7; 8GBRam;TmeCap;iPad/Phone

Posted on Jan 8, 2016 11:21 AM

Close

Q: How can I identify which albums photos are assigned to in Photos.

  • All replies
  • Helpful answers

Page 1 Next
  • by léonie,Helpful

    léonie léonie Jan 8, 2016 11:45 AM in response to socraties
    Level 10 (105,806 points)
    iCloud
    Jan 8, 2016 11:45 AM in response to socraties
    Please understand that I know how to use a smart album to find Unassigned photos, but how to you find albums assigned to photos?

    Photos does not support this. You cannot get a list of standard albums a photo has been assigned to.

     

    If you want to know for a photo, which albums a photo is in, use only smart albums based on keywords. You can see the keywords in the Info panel for a photo and know directly, which smart albums will contain it.

     

    To find all standard albums a photo is in you would have to program an Apple Script.

  • by socraties,

    socraties socraties Jan 8, 2016 11:45 AM in response to léonie
    Level 1 (13 points)
    Photos for Mac
    Jan 8, 2016 11:45 AM in response to léonie

    I appreciate your response.  I was afraid that would be true.  It helps me understand the Photos perspective better though.   Too bad that this inability to identify albums is a fatal limitation for me.  And it's a take-away because it was available in iPhotos and Aperture. 

     

    One, I already have 25000 photos set up in albums.   Two, I use pictures to locate other pictures.   For example:  If I see a picture of something (e.g. Fluffy the cat in a row boat), then I can recall other things that happened at that time.  Perhaps that is the same day (album or event) that my friend emailed me  the picture he took of me falling out of the boat.   You see, if the pictures do not have the appropriate date/time, the only way they are linked is by the album I filed them into.  And if Photos will not let me access that link, then how will I be able to interface with the groupings Apple assigns instead of the groupings I assign?  Pictures are not individual items that exist in a vacuum.   I do appreciate your feedback though.  

     

    Unfortunately, if I move to a third party photo system to regain that functionality, then iCloud loses its shine unless there is a third party application that will let me manage my photos AND integrate with iCloud via my iPhone, iPad, iPod, and my iMac.  If I want to cobble third party apps into a generic cloud solution, then Android sounds less kludgy.  

  • by socraties,

    socraties socraties Jan 8, 2016 11:47 AM in response to léonie
    Level 1 (13 points)
    Photos for Mac
    Jan 8, 2016 11:47 AM in response to léonie

    Would it work to program an Apple Script, then insert it in the contextual menu so that I can select any picture and run the script?   If so it would be a great workaround!!!   Do you think there may be an automator or Apple script out there that already exists?      I'm hopeful.

  • by léonie,Helpful

    léonie léonie Jan 8, 2016 11:58 AM in response to socraties
    Level 10 (105,806 points)
    iCloud
    Jan 8, 2016 11:58 AM in response to socraties
    And it's a take-away because it was available in iPhotos and Aperture.

    In you could reveal the project a photo is in, and in iPhoto you could reveal the event.  Neither of them could revel the albums.  The difference is, that any photo was in only one event in Photos or in only one project in Aperture. But it can be in many albums, and neither iPhoto nor Aperture could reveal photos in albums. t is exactly the same in Photos.

     

    The iPhoto events and Aperture projects have been replaced by the moments, and you can reveal a photo in the moment by ctrl-clicking it and selecting "Show in Moment".

      Do you think there may be an automator or Apple script out there that already exists?      I'm hopeful

    • I have not yet found such a script. 
  • by socraties,

    socraties socraties Jan 8, 2016 12:20 PM in response to léonie
    Level 1 (13 points)
    Photos for Mac
    Jan 8, 2016 12:20 PM in response to léonie

    Thank you again.  I see what you are saying!   I used Events and Projects in iPhoto and Aperture because the temporary nature of the Album link made me uncomfortable.   Aperture Projects were 'converted' to Albums in Photos.   I would love to find an Apple Script that does this kind of thing.   Or even learn to write one and insert it into contextual menus.  Perhaps I'm looking for Apple to provide more of a database functionality and search tool to their Photos program.   I sure didn't have these issues in Aperture.

     

    You have been tremendously helpful.  Thank you again.

     

    One more question regarding Smart Albums.   Can we insert an "or" statement between or after "and" statements.

     

    For example:

     

    Face includes Myron  AND

    Face includes Louise AND

    (Album = Mother's Day OR Album = Father's Day)

     

    Also, I wonder if it's possible to use 'contains' with 'Folder' (neither of which I see in smart album searches).   i.e.,  Folder Contains Holiday

     

    Again, I really appreciate the time you've taken to respond.  It's been helpful, I see why you have so many points!

  • by socraties,

    socraties socraties Jan 8, 2016 12:28 PM in response to léonie
    Level 1 (13 points)
    Photos for Mac
    Jan 8, 2016 12:28 PM in response to léonie

    I also see what you mean by Moments.   Moments simply does not work though because it uses file dates from the metadata.    File dates are frequently incorrect.   Almost all of my scanned photos have scanned dates.  So the file would be assigned to 1st birthday in Aperture which would be pictures of the 1st birthday.  Unfortunately, those pictures of the 1st birthday are spread across Moments because they were scanned, rescanned, emailed, or screen printed.  It's not possible to manually change the varying dates on thousands of files.  First I'd have to look up the date each photo was taken (from 40 years ago?) then I'd have to insert the varying dates into the metadata for each photo.

     

    So I wish that Projects/Events had not been abandoned.

  • by léonie,

    léonie léonie Jan 8, 2016 12:47 PM in response to socraties
    Level 10 (105,806 points)
    iCloud
    Jan 8, 2016 12:47 PM in response to socraties

    The moments are using the capture dates, if they are available.

     

    For my scanned photos I added capture dates using an apple script.

     

    We posted a few scripts in the User Tips section:    Photos for Mac User Tips

     

    You may want to have a look at this script:  Photos for Mac: Batch Change the Date and Time to a Fixed Date

     

    It will basically take a few selected photos and then change the date of the photos to the date of the first photo, but add a small increment between successive photos, for example 1 minute. This way the photos will have the same date and time as the first photo, but if sorted by the date, the sequence will be the same, because of the increment in time.

     

    Moments can be quite powerful, if the photos have been tagged with useful dates and with location data. Then Photos will group photos taken at the same tie at the same place together.  But it requires Photos 1,2 or later; otherwise it is not possible to assign locations in Photos.

  • by socraties,

    socraties socraties Jan 8, 2016 1:37 PM in response to léonie
    Level 1 (13 points)
    Photos for Mac
    Jan 8, 2016 1:37 PM in response to léonie

    I'm reviewing your links, and links in the links.   Lot's of info.  Useful information that helps my learning curve.   Another one I'm trying to wrap my head around when it comes to Moments is 'timeless and eventless' photos.   For example, I collect old photos of my ancestors (i.e., grandparents, great grandparents, great-great grandparents, and my great aunts and uncles).   Right now, they drop into the Moment based on the Scan date.  For example, I took a picture of my dad in the hospital on the same day I scanned some pictures of him as a kid.   I don't have a real date to assign them to.  But my dad riding a tricycle really doesn't belong next to him elderly laying in a hospital bed.   They are really 'Dateless' entities.   My Great grandmother and Great-Great Grandmother seem to live in the same timeframe from my brain's perspective, but if you could ask them, their lives were completely full and separate with some overlapping events.   Can we insert Text instead of a date for Moments?   For example, can I call (a) moment "1st Generation ancestors", "2nd Generation ancestors", etc?  Can I call a moment "Dad Growing Up"?  That way I will not get such a collage of pictures within incorrect date ranges.    I'm still struggling trying to believe that the key identity to a picture or the relationship between pictures is a date, or even a geographic location.   Those are great attributes to record, but they are not great identities to use as defining the event.  Of course the best solution (and easiest) is to use Events/Projects instead of Moments.

     

    Anyway, I'm going to increase my learning curve on Photos and continue to investigate solutions for my problem.  Thanks again for hanging in there with me.   It has been really really helpful!   I know you didn't have to do it, which makes me appreciate it all the more.

  • by léonie,

    léonie léonie Jan 8, 2016 2:29 PM in response to socraties
    Level 10 (105,806 points)
    iCloud
    Jan 8, 2016 2:29 PM in response to socraties

    I assign estimated dates and locations to my scans of old family pictures and add a keyword, that date and location are estimates.Also I assign faces labels. The dates and locations  will help to sort the photos and show them on a map.

    Can we insert Text instead of a date for Moments?   For example, can I call (a) moment "1st Generation ancestors", "2nd Generation ancestors", etc?  Can I call a moment "Dad Growing Up"?

    Moments are created automatically and we cannot name them. I use albums to give names to related sets of photos. The folders, albums, and smart albums will replace the iPhoto events or Aperture projects.

    Screen Shot 2016-01-08 at 23.28.30GMT.png

  • by Jacques Rioux,Solvedanswer

    Jacques Rioux Jacques Rioux Jan 8, 2016 8:37 PM in response to socraties
    Level 4 (3,408 points)
    Mac OS X
    Jan 8, 2016 8:37 PM in response to socraties

    Hello,

     

    socraties wrote:

     

    Would it work to program an Apple Script, then insert it in the contextual menu so that I can select any picture and run the script?  If so it would be a great workaround!!!  Do you think there may be an automator or Apple script out there that already exists?      I'm hopeful.

     

    This AppleScript show the name of albums which contains the selected photo:

     

    tell application "Photos"
        set sel to selection
        if sel is {} then return -- no selection
        set thisId to id of item 1 of sel
        set theseNames to name of (albums whose id of media items contains thisId)
    end tell
    if theseNames is not {} then
        set {oTid, text item delimiters} to {text item delimiters, return}
        set {t, text item delimiters} to {theseNames as string, oTid}
    else
        set t to "No album"
    end if
    activate
    display dialog t buttons {"OK"} default button "OK" -- you can press the Enter key or the return Key to close the dialog
    

     

     

    You can run this AppleScript from an Automator's service, and you can assign a shortcut to this service.

     

    Or, you can run this AppleScript from some third party utilities (some free) which run (shell script,  AppleScript script or javascript), and you can assign a shortcut to this action

  • by léonie,

    léonie léonie Jan 9, 2016 12:42 AM in response to Jacques Rioux
    Level 10 (105,806 points)
    iCloud
    Jan 9, 2016 12:42 AM in response to Jacques Rioux

    Great work, Jaques!

     

    The script is working well on my small local test library.

     

    May I suggest to add a line;

    set the clipboard to t


    right before the last "display dialog"?


    This way the result will be copied to the clipboard, and we can paste it into any text document and do not need to copy it manually from the dialog panel.


    When I try the script on my iCloud Photo Library with nearly 40000 photos however, I get a timeout error:


    error "Photos got an error: AppleEvent timed out." number -1712


    I'm getting the same error for any script that is using the "selection" to pass photos to a script, if the library is an iCloud Photo Library-

  • by léonie,

    léonie léonie Jan 9, 2016 1:00 AM in response to Jacques Rioux
    Level 10 (105,806 points)
    iCloud
    Jan 9, 2016 1:00 AM in response to Jacques Rioux

    Jaques,

    would you mind, if we post a link to your script in the user Tip section?

     

    -- Léonie

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Jan 9, 2016 10:10 AM in response to léonie
    Level 4 (3,408 points)
    Mac OS X
    Jan 9, 2016 10:10 AM in response to léonie

    Hello,

     

    léonie wrote:

     

    Jaques,

    would you mind, if we post a link to your script in the user Tip section?

     

    -- Léonie

     

    Yes, you can do it.

     

    Thank you.

     

    léonie wrote:

     

     

    When I try the script on my iCloud Photo Library with nearly 40000 photos however, I get a timeout error:


    error "Photos got an error: AppleEvent timed out." number -1712


    I'm getting the same error for any script that is using the "selection" to pass photos to a script, if the library is an iCloud Photo Library-

     

    This script was a starting point, I suspected that it would not be free of issues.

    Unfortunately, I only have a small library, and I don't use iCloud.


    If there are people who can improve this script, I'd be happy.

     

    Jacques.

  • by léonie,

    léonie léonie Jan 9, 2016 10:39 AM in response to Jacques Rioux
    Level 10 (105,806 points)
    iCloud
    Jan 9, 2016 10:39 AM in response to Jacques Rioux

    It is a very valuable starting point.  When I tried to write a similar script, I always failed when comparing the ids of the photos,  Your line "whose id of media items contains thisId"  was the missing link for me! 

     

    Apple scripts do not work well with iCloud Photo Library at all, if they are trying to access the current selection.  It will result in time out errors.

    There is a fix by NicFletcher - create a top level album that contains the photos to be processed. Here is Nic's sample script, that uses this method:

    https://discussions.apple.com/message/28087786#28087786

     

    I am using a fixed album called PhotosDropBox to pass photos to scripts.

    For iCloud Photo Library I might modify your script like this:

     

    tell application "Photos"

      -- Add the photo you want to search for to a top level album as the first item in the album

      set theAlbumName to "PhotoDropBox" -- change this to the name of the album you will use

      try

     

      if exists container theAlbumName then

     

      set thePhotosBuffer to container theAlbumName

      set sel to every media item of thePhotosBuffer

      else

      error "Album " & theAlbumName & "does not exist"

      end if

     

      on error errTexttwo number errNumtwo

      display dialog "Cannot open album: " & errNumtwo & return & errTexttwo

      end try

    end tell

     

    -- From Jacques Rioux's script:

    tell application "Photos"

      -- set sel to selection

      if sel is {} then return -- no selection 

      set thisId to id of item 1 of sel

      set theseNames to name of (albums whose id of media items contains thisId)

    end tell

     

    if theseNames is not {} then

      set {oTid, text item delimiters} to {text item delimiters, return}

      set {t, text item delimiters} to {theseNames as string, oTid}

    else

      set t to "No album"

    end if

    activate

    set the clipboard to t -- léonie

    display dialog t buttons {"OK"} default button "OK" -- you can press the Enter key or the return Key to close the dialog

    return t -- léonie

Page 1 Next