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

first Previous Page 3 of 4 last Next
  • by socraties,

    socraties socraties May 30, 2016 1:33 AM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    May 30, 2016 1:33 AM in response to Jacques Rioux

    This is exactly what I am looking for.  Thank you!   I do run into a problem where the script errors out after about 3200 photos and the PHOTOS-Albums folder on my desktop reaches about 14GB.    Here's a screen shot from Automator.  Any ideas what might be going wrong?

     

    Screen Shot 2016-05-30 at 1.22.10 AM.png

  • by socraties,

    socraties socraties May 30, 2016 1:38 AM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    May 30, 2016 1:38 AM in response to Jacques Rioux

    This is a jpg version of the screenshot:

    Screen Shot 2016-05-30 at 1.22.10 AM.jpg

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux May 30, 2016 5:50 PM in response to socraties
    Level 4 (3,418 points)
    Mac OS X
    May 30, 2016 5:50 PM in response to socraties

    Hi,

     

    socraties wrote:

     

    This is exactly what I am looking for.  Thank you!  I do run into a problem where the script errors out after about 3200 photos and the PHOTOS-Albums folder on my desktop reaches about 14GB.    Here's a screen shot from Automator.  Any ideas what might be going wrong?

     

    The default time out is 2 minutes, an error occurs when a command takes more than 120 seconds

    You have a lots of photos in an album, so it take more than two minutes to export it on the disk.

     

    To prevent this:

    You can increase the time, like this (ten minutes in this example):

    --------

        with timeout of 600 seconds -- error when the export command takes more than 10 minutes

                export (get media items of ........

        end timeout

    -------

     

    Or, to avoid the time out error, use this:

    ------

      with timeout of 0 seconds -- avoid the time out error

                export (get media items of ........

        end timeout

    ------

  • by socraties,

    socraties socraties May 31, 2016 11:07 AM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    May 31, 2016 11:07 AM in response to Jacques Rioux

    Thank you.  This worked.  I also found your other script that created nested folders.

  • by socraties,

    socraties socraties May 31, 2016 4:32 PM in response to Jacques Rioux
    Level 1 (13 points)
    Photos for Mac
    May 31, 2016 4:32 PM in response to Jacques Rioux

    Jacques -  This script works great and created nested folders with my photos.  It didn't time out with that extra line added to the script.  I notice the date create on the exported photo is today's date.   Is there anyway to retain the original create date of the photo on the export?

  • by LarryHN,

    LarryHN LarryHN May 31, 2016 4:44 PM in response to socraties
    Level 10 (84,752 points)
    Photos for Mac
    May 31, 2016 4:44 PM in response to socraties

    You are confusing the file date with the photos date - the photo date is included in the Photo in the EXIF/IPTC data - if you open the photo in a photo program like Preview you will see the photo date - if you look at it in the finder (a file manager) you will see the file date - like the postmark date on an envelope is the date the letter was mailed and the date on the letter in the envelope is the date the letter was written - two totally different things

     

    LN

  • by socraties,

    socraties socraties May 31, 2016 4:47 PM in response to LarryHN
    Level 1 (13 points)
    Photos for Mac
    May 31, 2016 4:47 PM in response to LarryHN

    Yes, I see that you are right.   The DateTime(s) in the Preview.app Inspector reflect the correct dates.  Whew!

  • by Jagat Pal Singh,

    Jagat Pal Singh Jagat Pal Singh Jun 23, 2016 11:01 PM in response to Jacques Rioux
    Level 1 (4 points)
    Jun 23, 2016 11:01 PM in response to Jacques Rioux

    Thanks Jacques,

    Script worked very well.

  • by Mteplitsky,

    Mteplitsky Mteplitsky Aug 20, 2016 7:02 AM in response to isra_BCN
    Level 1 (8 points)
    Aug 20, 2016 7:02 AM in response to isra_BCN

    I was excited to find the script for exporting Photo albums, but running into two surprises:

     

    1. My Script Editor is in iCloud, not on Desktop (though i don't know if it matters),

     

    2. I copied the script into Script Editor, substituting the name of my home folder for "home."

     

    When I attempt to save it, I get

     

    SYNTAX EDITOR

    A “"” can’t go after this identifier.

     

    Any advice appreciated! Thanks.

  • by pinocativo,

    pinocativo pinocativo Sep 21, 2016 11:38 AM in response to Jacques Rioux
    Level 1 (13 points)
    Mac OS X
    Sep 21, 2016 11:38 AM in response to Jacques Rioux

    Hello Jacques,

    thanks for your script.

     

    Can you please advise if it does work with OS X Sierra?

     

    Thank you so much,

    daniele

  • by pinocativo,

    pinocativo pinocativo Sep 21, 2016 12:13 PM in response to Jacques Rioux
    Level 1 (13 points)
    Mac OS X
    Sep 21, 2016 12:13 PM in response to Jacques Rioux

    Hello,

    can you please advise what "if you want the originals" mean?

     

    Thank you so much.

    daniele

  • by dachu,

    dachu dachu Sep 22, 2016 2:24 AM in response to isra_BCN
    Level 1 (12 points)
    Photos for Mac
    Sep 22, 2016 2:24 AM in response to isra_BCN

    Hello,

     

    Thank you so much for your script

    Is it working with Sierra?

    My final goal is to use your script to perform a sync from my Photos Library on my Mac to my NAS on my local network. So I'll need to modify your script to check before copying the file if it exists already or not, and if so, if it has been modified since the last sync or not. Depending on that, the file will be copied or not.

    The main issue that I see is how can I remove the files on my NAS which have been removed from my Photos Library !? Maybe with a second script which could compare both structures and remove the files on the NAS which are not in the Photos Library.

     

    Any idea of how I could modify the script to have this working?

    Thank you very much.

     

    Best regards,

    Damien

  • by Jacques Rioux,

    Jacques Rioux Jacques Rioux Sep 22, 2016 6:49 AM in response to pinocativo
    Level 4 (3,418 points)
    Mac OS X
    Sep 22, 2016 6:49 AM in response to pinocativo

    Hello,

    pinocativo wrote:

     

    Hello,

    can you please advise what "if you want the originals" mean?

     

     

     

    originals mean: the original version of your photo with no edits applied

     

     

    pinocativo wrote:

     

    Hello,

    Can you please advise if it does work with OS X Sierra?

     

    I don't know, I have not yet installed Sierra.

  • by pinocativo,

    pinocativo pinocativo Sep 22, 2016 2:54 PM in response to Jacques Rioux
    Level 1 (13 points)
    Mac OS X
    Sep 22, 2016 2:54 PM in response to Jacques Rioux

    Thanks for replying.

     

    As your script is very important to us, would you please let us know if it is Sierra compatible, once you have installed it?

     

    Many thanks for your help, daniele

  • by Big9erFan,

    Big9erFan Big9erFan Sep 23, 2016 4:37 PM in response to Old Toad
    Level 1 (8 points)
    Sep 23, 2016 4:37 PM in response to Old Toad

    I've been using the script to export albums now for a bit and it works great. 

     

    We recently replaced our old iPhones with the new iPhone 7, and that's been causing a small problem.  It seems the export is actually exporting a JPEG with the MOV still embedded in it, (guess based on the size).  Is there a way to make sure the export doesn't include that? If I do a manual export I can get it to export the file fine, but I have no idea what parameters to change in the script to try to get this behavior (and I've been searching for a bit now).

     

    Thanks in advance.

first Previous Page 3 of 4 last Next