Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Sync photos from Aperture to iPhoto Apps
Ever since I started using Aperture to organize my ever-growing collection of photos, the lack of interoperability between Aperture and the rest of the iLife apps has made using those photos in the suite slightly cumbersome. So .... AppleScript to the rescue.

However, the problem is that AppleScript support is not one of Aperture's strong points. The particular script that I came up with uses a mix of Aperture's AppleScript abilities and a SQL query. Aperture uses SQLite3 for its backend database, and it is possible to run SQL queries against it with the included sqlite3 binary. Aperture's AppleScript interface will let you figure out IDd of individual images in projects/albums -- and with this information, it is possible to run SQL queries that will give you pretty much everything else.

So, without further ado, here's an AppleScript (or download the actual script file (24KB) from my blog) that will let you select particular albums/projects in Aperture, and will sync them over to iPhoto. This, combined with the iPhoto setting to prevent copying files to the iPhoto folder when importing, will let you (with the least amount of wasted space) export Aperture photos and albums into iPhoto -- and therefore, make them available in all iLife apps.

Just one note: When you run the script, it will present you with a list of projects and folders. If you select one which has nested projects/albums in it, the script will further prompt you to select one or more of the nested projects/albums, and will then proceed to export the selected projects/albums to iPhoto. If you select one which does not have any nested projects/albums in it, the script will try to move photos from the selected project/album to iPhoto. If you need more detail on any of this, I've also documented it on my blog.
    •    
  • Currently 2.83 / 5
  You rated: 3 / 5 (6 votes cast)
 
[33,904 views]  

Sync photos from Aperture to iPhoto | 15 comments | Create New Account
Click here to return to the 'Sync photos from Aperture to iPhoto' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Sync photos from Aperture to iPhoto
Authored by: wildmac on Jul 31, '06 08:06:27AM
Hi, that is a very nice solution, however, this is the on I use, and works also perfectly

Aperture2iLife from Lightbox

http://www.lightboxsoftware.com/aperture/index.html

And for just $ 14,99 a steal....

Greetings

[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 03:47:59PM

That AppleScript is pretty much exactly what I've been looking for for quite some time -- thanks!

Unless I'm missing something, though, it seems like you have to manually sync each and every project, one at a time. With my library of about 100 projects, in various nested folders, this is a major pain in the rear. If this script could be tweaked to simply go ahead and sync all of 'em, that'd be awesome. :)



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 03:51:20PM
Hmm. I just re-read the instructions page, and it definitely says things like "select one or more albums" but neither Shift-clicking nor Command-clicking seem to make multiple selections... Hmm...

[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Jul 31, '06 10:40:35PM

The script wont let you select multiple projects/folders in the first dialog that it brings up, but if you have nested albums/projects within this first level project/folder, it should let you select more than one using shift/cmd. If you still have trouble, send me a snapshot of how your folder organization looks in aperture, and I'll see if I can reproduce the problem... My email address is in the script itself..



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 11:10:17PM

Ahhh, cool. That works very well.

Curious -- why not on the first list? My less-than-stellar AppleScript interpreting seems to suggest that it should work there, as it's got the "with multiple selections" bit...



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 11:12:09PM

Oh, nevermind, I am dumb. The "with multiple selections" line is in the sub-projects routine thingy.



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Jul 31, '06 10:44:34PM

Sure - I agree...having the ability to sync up the whole aperture library would be much simpler... I am currently working on enhancing this script to be more smart and actually achieve sync, i.e. remove pics from the iPhoto albums when they are removed from the corresponding Aperture albums and more... - and as a part of this "sync" functionality, it will also support sync-ing the entire Aperture library...



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 11:03:47PM
Another feature request, though I'm not sure if it's even possible: Any chance it could send iPhoto the current select for a stack, instead of the master? Since anyone shooting in RAW will be likely tweaking 95% of their shots, the iPhoto versions are going to be sub-par...

[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Jul 31, '06 11:08:24PM

Good idea...I agree - I've found myself going back and deleting the non-selects from a stack manually... and it gets tiring quite easily :-). I'll have to look into that one...



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Jul 31, '06 11:43:16PM
Hmm... After actually going ahead and doing a bunch of exports to iPhoto, I'm noticing that the script is definitely sending all versions, not just the masters as the comments inside the script suggest. Is this not normal?

[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: nathalex on Aug 01, '06 12:13:30AM

Same behavior here : all versions are sent to iPhoto.
Would it be possible to only send the top picture of the stack ?

Anyway, thanks for your great job !



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Aug 02, '06 12:29:57AM
Ok - so I've now updated the script with the following enhancements :
- Added support to sync only the select of a stack
- Added support to NOT sync the rejects from a project/album
- Added support to remove photos from an existing album in iPhoto before sync (if there was an album that existed in iPhoto with the same name as the Aperture album that you were trying to sync)

This script _should_ only sync up the masters, and not the versions. One of Aperture's operating methods is that when you actually create a version, it does not make a duplicate copy of your master (unless, maybe, if the master was a jpeg and not raw - I've yet to investigate this) - rather, it simply stores the metadata needed to create the version. That's why this script wont sync up the versions (unless ofcourse they were actual image files). Hope that explains this behavior...

One more really interesting tidbit that I observed as I was working on this script was that apparently, iPhoto seems to ignore nesting of albums when it comes to selecting them using applescript. In my case, what I did was to sync up a nested album in Aperture of this nature : "2006 Projects" > "Project A". Here, "2006 projects" is a folder, and "Project A" is a project inside the folder. When I sync this over using my script, it creates a album titled "Project A" in iPhoto. Now, if I manually create a folder in iPhoto called "XYZ" and put this album in that folder, the album still gets recognized the next time I sync over this Aperture project to iPhoto...! In short : After a sync, if you were to recreate your folder structure in iPhoto by manually creating folders and moving albums into those folders, the next time you try to sync, the correct album will get synced.

The updated version of the script is @ :
http://web.mac.com/devarshi/iWeb/Miscellanea/Technobabble/8AF8E35A-57F1-43F7-952A-98998CE3EA77_files/Aperture%20iPhoto%20Sync%20v0.2.scpt


[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Unsoluble on Aug 03, '06 03:30:58PM

Hmm. So... hangonasec... It'll now sync only the Select of a stack, but presumably not if the stack consists of only one master and a bunch of versions? I guess there's no way to actually have a version get exported to iPhoto via script, eh?

In any case, the script still rules my world -- thanks! :)



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Aug 03, '06 04:56:56PM

Actually, if the select is a version, it should pick up the master that the version was created from :-). I know its a bit painful :-).. work in progress to improve this...



[ Reply to This | # ]
Sync photos from Aperture to iPhoto
Authored by: Anonymous on Aug 06, '06 11:51:49AM
A new version of the script with the ability to export modified versions to iPhoto and some more features is now available here

[ Reply to This | # ]