by Alexander Thomas (aka Dr. Lex)
In Mac OS X ‘El Capitan’, iPhoto was replaced by the new Photos app. This broke the automatic import of Eye-Fi SD cards using Eye-Fi Center, because it relies on specific functionality of iPhoto. Eye-Fi didn't bother fixing this. They did release a replacement for Eye-Fi Center (called Eye-Fi X2 Utility), but it is limited to importing photos and videos to a folder. Given that the Eye-Fi company is now defunct, don't get your hopes up high of this situation improving. Luckily there is a workaround to re-enable automatic import into Photos.
This is an AppleScript that can be configured as a Folder Action. When it notices a change in the Eye-Fi import folder, it will run and feed the photos to the Photos app. This comes as close to the direct import as it can get.
Credits go to natcl for making the initial script that served as inspiration. I could not get that script to work: the Folder Action does not trigger when Eye-Fi adds image files directly to the watched folder, and when using subfolders, the script doesn't work. So, I made an improved variation. As added advantage, the new script imports all photos in one operation, so they are all grouped together in the last import view.
First of all, you should have a good idea of how many seconds it can take at most to transfer a single photo from the Eye-Fi card to your Mac. The reason for this is that the script needs to wait until all photos have been transferred before it can start importing. It uses a polling loop, and the polling interval must be larger than the longest time it can take to import a photo, otherwise the import may be incomplete. The default is 7 seconds, but for high-resolution or RAW photos this may not suffice. The larger you choose this value, the longer it will take for the import to start, but too small a value has a risk of photos being skipped and never imported.
folderPollDelay unless you believe the default of 7 seconds to be good enough. Adjust any other settings if desired.
Now you can connect to your Eye-Fi card as usual, to have it import the photos to the designated intermediate folder. When it has finished, the script will activate after the polling delay. It imports the images to the Photos app. When finished, all folders inside the Eye-Fi folder are moved to the trash, unless they contain something the script doesn't recognise. In that case, a warning will be displayed and you should clean up the mess before importing any new photos.
Of course, this folder action can also be used to automatically import photos in any other situation where images are added as subfolders of a certain folder.
I provide this script without any warranties. Using it is entirely at your own risk. I am not affiliated with Eye-Fi in any way.