exportiphoto
exportiphoto copied to clipboard
Unable to export
I keep hitting an exception:
Traceback (most recent call last):
File "exportiphoto.py", line 635, in <module>
library.walk([copyImage])
File "exportiphoto.py", line 304, in walk
func(imageId, targetFileDir, folderDate)
File "exportiphoto.py", line 629, in copyImage
library.copyImage(imageId, folderName, folderDate)
File "exportiphoto.py", line 359, in copyImage
basename = os.path.basename(mFilePath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 112, in basename
AttributeError: 'NoneType' object has no attribute 'rfind'
After a bit of digging, mFilePath on line 359 comes up as None. I would like to just skip these entries but I am not really sure how. Any suggestions on how to cleanly move on to the next image from this point in the code would be super helpful.
Thanks.
Good news, @cwebberOps. I learned a couple days ago that the newer versions of iPhoto have made it possible for you to export your pictures to a folder hierarchy right from within iPhoto.
Please give it a try. If it works, please close this issue.