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

Previous Page 2
  • by socraties,

    socraties socraties Jan 9, 2016 11:02 AM in response to socraties
    Level 1 (13 points)
    Photos for Mac
    Jan 9, 2016 11:02 AM in response to socraties

    Thank you both, léonie et Jacques !   I will work on testing the script on my system.   I think it will work well in my situation because I have only a little over 25000 photos and they are stored locally.  They do upload to the cloud but I retain a copy locally (Download Originals to this Mac in Photos iCloud preferences).

     

    It will take me a little while to test it (I'm not proficient in scripts or automator) but I promise to flag 'solved my problem' when done.    Thank you both for working on this, it's incredible.  

  • by léonie,

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

    Yes, you can do it.

     

    Thank you.

    That's great!  Thank you, Jaques.

     

    I posted the link to your script here:   How to find out the albums a photo is in: Jacques Rioux's script

  • by socraties,

    socraties socraties Jan 9, 2016 12:37 PM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    Jan 9, 2016 12:37 PM in response to Jacques Rioux

    Jacques -  I'm having trouble setting this up.  Maybe it's easy for you to see what I'm doing wrong.  Two problems:

     

    1 -  I receive this error when clicking on the "Step" button in Automator.

    Screen Shot 2016-01-09 at 12.22.30 PM.png

     

    This is the syntax I copied and manually typed into the Automator Script window:

     

    Screen Shot 2016-01-09 at 12.30.58 PM.png

     

    Second Problem:

     

    I added it to Services twice.   But it doesn't show up in the Services Menu in Photos (or anywhere).

     

    Screen Shot 2016-01-09 at 12.34.44 PM.pngScreen Shot 2016-01-09 at 12.24.30 PM.png

     

    Is it possible to see what I'm doing wrong or am I simply too remedial on this subject?   Thanks for your help on this.  I hope it helps a lot of other people too!

     

    russ

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Jan 10, 2016 11:11 AM in response to socraties
    Level 4 (3,408 points)
    Mac OS X
    Jan 10, 2016 11:11 AM in response to socraties

    Hello,

     

    socraties wrote:

     

    Jacques -  I'm having trouble setting this up.  Maybe it's easy for you to see what I'm doing wrong.  Two problems:

     

    1 -  I receive this error when clicking on the "Step" button in Automator.

    Screen Shot 2016-01-09 at 12.22.30 PM.png

     

    This is the syntax I copied and manually typed into the Automator Script window:

     

    Screen Shot 2016-01-09 at 12.30.58 PM.png

     

     

     

    It lacks the "s" character in the first button word.

    display dialog t buttons {"OK"} default button "OK"

     

    Or, you can use this line (the dialog show two buttons, a default and a cancel buttons).

    display dialog t  -- you can press the Enter key or the return Key to close the dialog

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Jan 10, 2016 11:39 AM in response to socraties
    Level 4 (3,408 points)
    Mac OS X
    Jan 10, 2016 11:39 AM in response to socraties

    socraties wrote:

     

    Second Problem:

     

    I added it to Services twice.  But it doesn't show up in the Services Menu in Photos (or anywhere).

     

     

    This is because Photos doesn't work with a service of  type  (Images).

    Don't try to change it on your service, it will not change the original type on the already saved service

     

    You must create a new service.

    Select "No Input"  from the first popup  button --> Service receive: "No Input" from application: "Photos"

     

    After the saving, this service  will be in the "General" services, not in the "Images" services

  • by socraties,

    socraties socraties Jan 11, 2016 1:44 PM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    Jan 11, 2016 1:44 PM in response to Jacques Rioux

    Hi Jacques -  This is beautiful.  Thank you so much for this script.   I followed your advice and it works great.   Ultimately I used "display dialog t" and dropped the

    "buttons {"OK"} default button "OK" ".   It runs great and presents a dialog with the list of Albums.   To release the dialogue, I simply click OK or the Return Key.


    Wow, wow, wow, wow.   I could pee in my pants.  Thank you SOO much for your time and effort.  


    russ

  • by steve.wong,

    steve.wong steve.wong Jun 25, 2016 1:55 AM in response to socraties
    Level 1 (8 points)
    Jun 25, 2016 1:55 AM in response to socraties

    I have found a useful workaround for any timeout errors (error message -1712) that occur with any or Jacques Rioux's excellent scripts - for example this solved the timeout issues I was getting for the import folders as albums scripts. You just need to give the Mac a bit more time to count images etc: the default is 60 seconds, which often isn't enough. So rather than workarounds involving creating a parent folder, all you need to do is edit the script and add a timeout instruction and a close instruction after every event. So for this script I modified it thus:

    tell application "Photos"

      set sel to selection

      with timeout of 10000 seconds

      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 timeout

    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 

Previous Page 2