isra_BCN

Q: export same albums from Photos

Hi

 

How can I export my library or part of my library from Photos with same album structure created?

 

For example, I have in Photos albums A, B, C, D, E etc

 

I want to export the pictures in a folders structure in OSX/finder as albums in Photos

So, in

-folder A with pictures in album A

- Folder B with pictures in album B

 

And so on

 

Thanks

Posted on May 11, 2015 7:18 AM

Close

Q: export same albums from Photos

  • All replies
  • Helpful answers

Page 1 of 3 last Next
  • by léonie,

    léonie léonie May 11, 2015 7:24 AM in response to isra_BCN
    Level 10 (105,935 points)
    iCloud
    May 11, 2015 7:24 AM in response to isra_BCN

    You can export the Moments structure as subfolders, but not the album structure.

    To export each album to a separate folder you would have to export each album separately to a separate folder and name the folder on your own.

     

    If you export selected photos using File > Export, you can create subfolders for each Moment, but not for the albums.

  • by isra_BCN,

    isra_BCN isra_BCN May 15, 2015 1:14 AM in response to léonie
    Level 1 (0 points)
    May 15, 2015 1:14 AM in response to léonie

    Thanks,

     

    Bad news, In Iphoto i used an app "iphoto to jalbum" to do that. I see in Photos it is not yet included, for me a big lack which I really don't understand why it is  not included.

     

    It is not feasible to do it one by one with big volume of albums as I normally have each end of year.

     

    So I will need to wait to some external application to cover this functionality

     

    Regards

  • by TomJ5000,

    TomJ5000 TomJ5000 Nov 2, 2015 12:13 PM in response to isra_BCN
    Level 1 (0 points)
    Nov 2, 2015 12:13 PM in response to isra_BCN

    Hi isra_BCN!

     

    have you found a solution for exporting multiple albums in the photos app?

    I'm also facing the same problem and am actually thinking of trying to write

    a small utility that would allow me to export the album structure plus photos, but I'm not sure

    if I can decipher the library format...

     

    Best

    Tom

  • by cambo.mck,

    cambo.mck cambo.mck Dec 7, 2015 3:24 AM in response to isra_BCN
    Level 1 (0 points)
    Dec 7, 2015 3:24 AM in response to isra_BCN

    I'm trying to workout something similar - in that I'm trying to split up my massive photos library (300Gb) into a separate file for each year - so that I can archive some of the photos to an external drive and regain some space on my macbook. I can easily export the moments for a particular year and create a new new library, but I would like to retain the albums that were based on those same photos. My albums are also structured in years and months so it would be easy to do if photos supported it - but I haven't found a way to do it. Any thoughts?

     

    Or is it possible with applescript or automator?

     

    Thanks,

    Cam

  • by Jacques Rioux,Helpful

    Jacques Rioux Jacques Rioux Dec 7, 2015 8:41 AM in response to isra_BCN
    Level 4 (3,408 points)
    Mac OS X
    Dec 7, 2015 8:41 AM in response to isra_BCN

    Hello,

     

     

    it's possible on El Capitan:

     

    Important: the smart albums will be included in the albums, it's not possible to exclude it.

    You can use this AppleScript:

     

    set dest to "/Users/me/Desktop/photos-Albums/" as POSIX file as text -- the destination folder (use a valid path)
    
    tell application "Photos"
        repeat with i in albums
            set tFolder to dest & (get name of i)
            my makeFolder(tFolder) -- create a folder named (the name of this album) in dest
            export (get media items of i) to (tFolder as alias) without using originals
        end repeat
    end tell
    
    on makeFolder(tPath)
        do shell script "mkdir -p " & quoted form of POSIX path of tPath
    end makeFolder
    
    
    
    

     

    Open the "Script Editor" application in /Applications/Utilities/

    Copy the AppleScript and paste into the window of the "Script Editor".

    Change the path of your folder in the first line of the script (use drag/drop to get the correct path of your folder).

     

    if you want the originals, use this --> export (get media items of i) to (tFolder as alias) with using originals

  • by cambo.mck,

    cambo.mck cambo.mck Dec 7, 2015 3:19 PM in response to Jacques Rioux
    Level 1 (0 points)
    Dec 7, 2015 3:19 PM in response to Jacques Rioux

    Thanks Jacques,

     

    I tried this script, but I got the following error:


    error "Photos got an error: Can’t get every album." number -1728 from every album

     

    I simplified the script to see if I could narrow down the problem:


    tell application "Photos"

      repeat with i in albums

      display dialog ("Album: " & (get name of i))

      end repeat

    end tell


    But this still had the same problem.


    Any thoughts?


    Cheers,

    Cam

  • by cambo.mck,

    cambo.mck cambo.mck Dec 7, 2015 3:42 PM in response to cambo.mck
    Level 1 (0 points)
    Dec 7, 2015 3:42 PM in response to cambo.mck

    EDIT: Just realised that you mentioned "El Captain" in your post, and forgot I'm still running Yosemite on my work Mac ... so I'll try this again at home tonight on ElCap.

  • by TrickyRick62,

    TrickyRick62 TrickyRick62 Dec 18, 2015 5:56 AM in response to Jacques Rioux
    Level 1 (0 points)
    Dec 18, 2015 5:56 AM in response to Jacques Rioux

    Thanks Jacques.  This script did exactly what I needed to do.  You saved me much time in doing this manually.

  • by GreLo,

    GreLo GreLo Feb 11, 2016 11:59 AM in response to Jacques Rioux
    Level 1 (0 points)
    Feb 11, 2016 11:59 AM in response to Jacques Rioux

    Thanks Jacques!

    That helps a lot. Your script is almost doing what I am exactly searching for. But: is it possible to export just the selected albums?

    This would be perfect!

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Feb 12, 2016 8:29 AM in response to GreLo
    Level 4 (3,408 points)
    Mac OS X
    Feb 12, 2016 8:29 AM in response to GreLo

    Hi,

     

    GreLo wrote:

     

    Your script is almost doing what I am exactly searching for. But: is it possible to export just the selected albums?

     

    There is no AppleScript's command to get the selected albums.

     

    Workaround, the "choose from list" command to select some names:

     

    set dest to "/Users/myUserName/Desktop/photos-Albums/" as POSIX file as text -- the destination folder (use a valid path) 
    
    tell application "Photos"
        activate
        set l to name of albums
        set albNames to choose from list l with prompt "Select some albums"
        if albNames is not false then -- not cancelled
            repeat with tName in albNames
                set tFolder to dest & tName
                my makeFolder(tFolder) -- create a folder named (the name of this album) in dest 
                export (get media items of album tName) to (tFolder as alias) without using originals
            end repeat
        end if
    end tell
    
    on makeFolder(tPath)
        do shell script "mkdir -p " & quoted form of POSIX path of tPath
    end makeFolder
    

     

     

    Caveat : this script may not work correctly on albums with the same name (if you select a name that is not unique).

  • by Cantellolo,

    Cantellolo Cantellolo Feb 18, 2016 10:01 AM in response to Jacques Rioux
    Level 1 (0 points)
    Feb 18, 2016 10:01 AM in response to Jacques Rioux

    Thanks, actually extremely helpful as I have organised all photos in albums, not moments and I wanted to export the stored photos to perform face recognition in Picasa.

  • by Old Toad,

    Old Toad Old Toad Feb 18, 2016 12:06 PM in response to Jacques Rioux
    Level 10 (140,940 points)
    Photos for Mac
    Feb 18, 2016 12:06 PM in response to Jacques Rioux

    Jaques:

     

    Any way to allow the users to select more than one album at a time?

     

    Also have you considered adding the script to the Photos User Tips section? 

    OTsig.png

  • by léonie,

    léonie léonie Feb 18, 2016 12:19 PM in response to Old Toad
    Level 10 (105,935 points)
    iCloud
    Feb 18, 2016 12:19 PM in response to Old Toad

    Good Idea -  Jaques's script is already a user tip:  How to find out the albums a photo is in: Jacques Rioux's script

    I posted it for him last month, but we need to add the updated version with the  new features.

  • by Old Toad,

    Old Toad Old Toad Feb 18, 2016 12:22 PM in response to léonie
    Level 10 (140,940 points)
    Photos for Mac
    Feb 18, 2016 12:22 PM in response to léonie

    This is a different script.  It displays the albums in the library for you to pick to download to a folder on the desktop.  His other script has you select a photo and it will tell you which albums it's in. 

Page 1 of 3 last Next