DaveSL

Q: Folder structure imorting into Photos

Can I retain the folder structure when I import them into Photos.

 

I am using Yosemite on my mac mini and am trying Photos to see if it will be of any use to me. I have a large number of photos in a folder structure upto 6 or 7 deep and would like to import the whole lot into Photos while retaining the sturucture I already have.

 

No luck as yet, is there a way?

Mac mini, OS X Yosemite (10.10.3)

Posted on Apr 19, 2015 8:52 AM

Close

Q: Folder structure imorting into Photos

  • All replies
  • Helpful answers

Previous Page 2
  • by ptboya,

    ptboya ptboya Nov 14, 2015 8:43 AM in response to DaveSL
    Level 1 (0 points)
    Nov 14, 2015 8:43 AM in response to DaveSL

    I first copied my camera uploads folder from Dropbox to the Pictures>Saved Pictures folder. Then I dragged that folder to the sidebar of Photos dropping it on the top entry "Photos". All the photographs then copied to Photos. Perhaps the first step here is not needed though. IOW, just dragging from anywhere and dropping on the Photos sidebar may be sufficient.

  • by nickbailey,

    nickbailey nickbailey Nov 21, 2015 1:21 PM in response to Old Toad
    Level 1 (10 points)
    Nov 21, 2015 1:21 PM in response to Old Toad

    That looks excellent. I have two questions:

     

    When this is run will Photos essentially create a duplicate of every photo?

     

    My photo workflow will create new dated folders in my old Dropbox structure, can these be subsequently imported using this tool?

     

     

    (I'm a Picasa users, but only contemplating Photos as Picasa is not Retina display ready )

  • by Old Toad,

    Old Toad Old Toad Nov 21, 2015 5:28 PM in response to nickbailey
    Level 10 (140,928 points)
    Photos for Mac
    Nov 21, 2015 5:28 PM in response to nickbailey

    I don't know if this will work with Dropbox.  Give it a try.  But don't enable the import to Photos feature of Dropbox. 

     

    When the image files are imported into Photos a copy is created inside the library. Once the the photos are confirmed to be safely in the library the outside source files can be deleted.  This is only if you're running a "managed" library:

    Pmanreflibrary.png

  • by JackPPG,

    JackPPG JackPPG Jan 14, 2016 7:04 AM in response to code!z
    Level 1 (0 points)
    Jan 14, 2016 7:04 AM in response to code!z

    Hi,

     

    Thank you for that script, it worked perfectly! Why apple don't offer this as a standard function is beyond me! I have folders with in folders within folders and without this script i couldn't use the photos app!

     

    Anyway bringing me to the next tedious part I now want to move said albums onto my iPad - using the photo stream only moves the photos, not albums whatsoever. I found a new technique by turning off iCloud photo and connecting with a USB i am able to sync the photos manually but the sub folders still disapper? i'm just left with the the final folder that has the pictures which is a mess!!!

     

    Just wondered if anyone had any experience or solutions???

     

    Many thanks

     

    Jack

  • by JackPPG,

    JackPPG JackPPG Jan 14, 2016 7:40 AM in response to Old Toad
    Level 1 (0 points)
    Jan 14, 2016 7:40 AM in response to Old Toad

    Hi,

     

    Thank you for that script, it worked perfectly! Why apple don't offer this as a standard function is beyond me! I have folders with in folders within folders and without this script i couldn't use the photos app!

     

    Anyway bringing me to the next tedious part I now want to move said albums onto my iPad - using the photo stream only moves the photos, not albums whatsoever. I found a new technique by turning off iCloud photo and connecting with a USB i am able to sync the photos manually but the sub folders still disapper? i'm just left with the the final folder that has the pictures which is a mess!!!

     

    Just wondered if anyone had any experience or solutions???

     

    Many thanks

     

    Jack

  • by Old Toad,

    Old Toad Old Toad Jan 14, 2016 9:51 AM in response to JackPPG
    Level 10 (140,928 points)
    Photos for Mac
    Jan 14, 2016 9:51 AM in response to JackPPG
    hank you for that script, it worked perfectly! Why apple don't offer this as a standard function is beyond me!

    Be sure to tell Apple what missing features you'd like restored or new features added in Photos via https://www.apple.com/feedback/photos.html.

  • by wheresaldo,

    wheresaldo wheresaldo Mar 18, 2016 9:18 PM in response to code!z
    Level 1 (4 points)
    Mac OS X
    Mar 18, 2016 9:18 PM in response to code!z

    Thank you so much for making this Apple Script! I've been looking for something like this for a couple of years.  It works great.

  • by MiltonfromTN,

    MiltonfromTN MiltonfromTN May 9, 2016 11:23 AM in response to Old Toad
    Level 1 (4 points)
    May 9, 2016 11:23 AM in response to Old Toad

    I just purchased my first MAC last week (actually my wife's machine) after being a PC guy for well over 20 years. Like others on this post, I am trying to import/transfer over 20,000 pictures that my wife has scanned from old family albums dating back 50 years or more from my external hard drive backup. They are all stored in a fairly elaborate folder structure for easy access.

     

    I have been struggling with the Mac Photos app and have come to the realization there is no way to maintain that folder structure. It's just like throwing 20,000 photos into a big room, stirring them around, and then trying to find a select group.

     

    I don't have a clue how to even start to run the script provided in the post even though you gave directions. If I understand correctly, you have converted the script into an App. If that is correct, how can I go about getting the App. Please know that I am a Mac newbie, and while I understand the Windows world fairly well, I am finding the terminology here is very different.

     

    Thanks,

    Milton

  • by Old Toad,

    Old Toad Old Toad May 9, 2016 12:06 PM in response to MiltonfromTN
    Level 10 (140,928 points)
    Photos for Mac
    May 9, 2016 12:06 PM in response to MiltonfromTN

    You can import each folder of photos into the Photos library and automatically create an album with the same name as the folder which contains those photos.  You'll need to use this Applescript from the Photos for Mac User Tips page: Import Folders of Image Files into Library as Albums

     

    You can download a compiled version of the script as an application from this tutorial site: P01 - Applescripts from Photos’ User Tips Compiled as Applications

  • by Evansgo,

    Evansgo Evansgo May 15, 2016 4:28 AM in response to code!z
    Level 1 (8 points)
    Photos for Mac
    May 15, 2016 4:28 AM in response to code!z

    Is there an easy way to get the script to watch a folder then to take the folder name of anything that "appears" and then run? I'm thinking of using Lightroom to export to a folder, then for this script to automatically add anything that hits that folder to photos (along with the correct album name) and then to delete the Lightroom added folder.

    Thanks...

  • by Nameless68,

    Nameless68 Nameless68 May 18, 2016 2:47 PM in response to code!z
    Level 1 (14 points)
    May 18, 2016 2:47 PM in response to code!z

    Super script! Will save massive amount of time bringing images into Photos! Thanks.

  • by Harkangel,

    Harkangel Harkangel May 22, 2016 4:29 PM in response to Old Toad
    Level 1 (4 points)
    May 22, 2016 4:29 PM in response to Old Toad

    Thank you Old Toad for making  code!z script available in compiled form, it is just what I have been looking for. Code!z has updated his script to include additional extensions  including video that did not transfer in the folders to Photos. Would you be kind enough to compile, and make available, his  updated script that includes video extensions?

  • by Old Toad,

    Old Toad Old Toad May 23, 2016 9:56 AM in response to Harkangel
    Level 10 (140,928 points)
    Photos for Mac
    May 23, 2016 9:56 AM in response to Harkangel

    You can do it yourself.  Launch Script Editor and drag Code!z's applescript file onto its icon in the dock.

    Finder001.jpg

    In the Scrip Editor window click on the compile button to compile it and verify the code is good::

    Highlight001.jpg

    Now hold down the Option button, click on the File menu and select Save As:

    Script Editor002.jpg

    Lastly select Application in the File Format menu:

    Script Editor004.jpg

    and save to the Desktop.

  • by Evansgo,

    Evansgo Evansgo Jun 5, 2016 6:07 AM in response to Evansgo
    Level 1 (8 points)
    Photos for Mac
    Jun 5, 2016 6:07 AM in response to Evansgo

    Still looking for help on this one, I'm trying to learn AppleScript but I'm not getting there vey quickly...

     

    I'm surprised that this isn't more popular, but basically my workflow is to use lightroom for all "serious" editing / cataloguing and Apple photos for displaying / sharing, due to the way Photos integrates into everything so well (assuming you have an Apple household as we do.)

    So I edit etc in Lightroom, then rate them with stars / colours, this then auto-populates a Lightroom publish service, this then builds a totally separate folder structure just for Apple Photos, containing just JPG files of a reasonable resolution and only the starred items. What I am trying to do is to get Hazel (or folder actions) to monitor the folder and run a modified version of this script. So instead of the user selecting the folders, it will pick up every new folder and import it along with the new pics, then Hazel can delete the contents and watch for the next change.

     

    I guess it really just needs a couple of lines to replace "set folderList to (choose folder with multiple selections allowed)", to set folderList to Listofallfolders, but for the life me I cannot get the syntax right...

    Please help...

     

    on run
    set folderList to (choose folder with multiple selections allowed)
    tell application "Photos"
    activate
    delay 2
    end tell
    repeat with baseFolder in folderList
    importEachSubFolder(baseFolder, null)
    end repeat
    end run
    on importEachSubFolder(aFolder, parentFolder)
    tell application "Finder"
    set albumName to (name of aFolder as text)
    set subFolders to every folder of aFolder
    end tell
    if (count of subFolders) > 0 then
    set fotoFolder to createFotoFolder(aFolder, albumName, parentFolder)
    repeat with eachFolder in subFolders
    importEachSubFolder(eachFolder, fotoFolder)
    end repeat
    else
    set fotoFolder to parentFolder
    end if
    importFotos(aFolder, albumName, fotoFolder)
    end importEachSubFolder
    on importFotos(aFolder, albumName, parentFolder)
    set imageList to getImageList(aFolder)
    if imageList is {} then return
    set fotoAlbum to createFotoAlbum(albumName, parentFolder)
    tell application "Photos"
    with timeout of 600 seconds
    import imageList into fotoAlbum skip check duplicates no
    end timeout
    end tell
    end importFotos
    on createFotoFolder(aFolder, folderName, parentFolder)
    tell application "Photos"
    if parentFolder is null then
    make new folder named folderName
    else
    make new folder named folderName at parentFolder
    end if
    end tell
    end createFotoFolder
    on createFotoAlbum(albumName, parentFolder)
    tell application "Photos"
    if parentFolder is null then
    make new album named albumName
    else
    make new album named albumName at parentFolder
    end if
    end tell
    end createFotoAlbum
    on getImageList(aFolder)
    set extensionsList to {"jpg", "png", "tiff", "JPG", "jpeg", "gif", "JPEG", "PNG", "TIFF", "GIF", "MOV", "mov", "MP4", "mp4", "MPG", "mpg", "BMP", "bmp", "TIF", "tif", "AVI", "avi", "PSD", "psd", "ai", "AI", "orf", "ORF", "nef", "NEF", "crw", "CRW", "cr2", "CR2", "dng", "DNG", "PEF"}
    tell application "Finder" to set theFiles to every file of aFolder whose name extension is in extensionsList
    set imageList to {}
    repeat with i from 1 to number of items in theFiles
    set thisItem to item i of theFiles as alias
    set the end of imageList to thisItem
    end repeat
    imageList
    end getImageList
Previous Page 2