zimmerst / phoshare

Automatically exported from code.google.com/p/phoshare
Other
0 stars 0 forks source link

"Last Import" does not behave like a smart album. #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
--------------------------
1. Assume an iPhoto '09 libary for wich the last import was over 100 files and 
for which the libary is located at /Users/Shared/iPhoto Library
2. Excute the following from the terminal
   ./Phoshare.py --iphoto "/Users/Shared/iPhoto Library" --export "/Users/Shared/Our Pictures/inBox/Last Import" -k -u -s "Last Import" --verbose

What is the expected output? What do you see instead?
--------------------------
I expected the "Last Import" images and videos to be copied over along with the 
relevant IPTC info. No files were copied. 

The actual output was

Reading iPhoto database from /Users/Shared/iPhoto Library...
Scanning iPhoto data for photos to export...
Scanning existing files in export folder...
Exporting photos from iPhoto to export folder...
[BigMac] Resources $ 

The issue appears to be with the smart folder as other folders do just fine. 
According to the scripting documentation it should be possible to use the "Last 
Import" smartfolder - and I'm presuming this is not a custom built one but the 
default one found in iPhoto under the "Recent" section.

--------------------------
Latest version of Phosare on OSX 10.6.4 with iPhoto '09 version 8.1.2 (424)

Thanks for following up.

Rgds

Original issue reported on code.google.com by fb657...@skynet.be on 11 Sep 2010 at 12:11

GoogleCodeExporter commented 9 years ago
Only Smart Albums that you create yourself are considered smart albums by 
iPhoto. "Last Import" is marked as "Special Roll", "Last Month" is "Special 
Month", and Flagged is "Shelf".  You can change Phoshare yourself if you want a 
quick way to export your "Last Import". Around line 763, the code looks like 
this:

      if options.smarts:
            self.process_albums(data.masteralbum.albums, ["Smart"], "",
                                 options.smarts, excludes, options)
Change it to say say
    "Smart", "Special Roll"
instead of just
    "Smart"
and your export command should export the Last Import album:
   if options.smarts:
            self.process_albums(data.masteralbum.albums, ["Smart", "Special Roll"], "",
                                 options.smarts, excludes, options)

Original comment by tsporkert on 11 Sep 2010 at 4:14

GoogleCodeExporter commented 9 years ago
Thanks for the pointers. I'll check the code. It would be good to update the 
scripting information page. It's a little misleading as it refers to the 
special rolls.

Original comment by fb657...@skynet.be on 12 Sep 2010 at 5:17

GoogleCodeExporter commented 9 years ago
Tested in Phoshare 1.5.2

Original comment by tsporkert on 11 Oct 2012 at 6:23