Import a directory hierarchy as albums into OS X Photos (El Capitan).
Just download ImportPhotoFolders.applescript, open it in Script Editor and execute it from there.
You will be asked to select the directories to import.
Given the following directory structure:
- Pictures/
- Mountains/
- Asia/
- everest.jpg
- k2.jpg
- Europe/
- matterhorn.jpg
- Asia/
- People/
- i.jpg
- mejenny.jpg
- whatever.jpg
- Mountains/
When selecting the Pictures directory to import, the following structure will be generated in Photos:
- Pictures/ (folder)
- Mountains/ (folder)
- Asia (album)
- everest.jpg
- k2.jpg
- Europe (album)
- matterhorn.jpg
- Asia (album)
- People (album)
- i.jpg
- mejenny.jpg
- Pictures (album)
- whatever.jpg
- Mountains/ (folder)