Lightroom to iPhoto export

Download

Download iPhotoExport v0.1

What?

The Lightroom to iPhoto plugin exports the selected photos from Adobe Lightroom to iPhoto and creates an album with the exported photos if needed.

Why would one like to duplicate photos from Lightroom in iPhoto? Well, Lightroom is my main photo repository but I miss the tight integration with Mac OS X like iPhoto has. iPhoto makes it easy to browse your photo library from different applications (like Finder and Mail) or export the photos to external devices (like the iPhone or iPod), Ligthroom doesn't.

The plugin was tested with Adobe Photoshop Lightroom 1.3.1 and iPhoto '08 7.1.1, other versions may work but I didn't check.

Installation

Installing is pretty easy:

To install manually, move the plugin folder to /Library/Application Support/Adobe/Lightroom/Modules/ to install for all users or move it to ~/Library/Application Support/Adobe/Lightroom/Modules/ if you only want to install the plugin for yourself. In either case you'll have to create the Modules folder within the Lightroom folder if it's not already there.

Restart Adobe Lightroom if it was running.

Export a few photos

Just export your photos like you would normally do but select iPhoto from the top area of the export dialog. Set the options (resolution, export format, create an iPhoto album or not, etc.) and export your photos.

Export window screenshot

Uninstalling

To uninstall the plugin you just need to delete it from the ‘Modules’ folder or move it to where Lightroom won't find it.

For developers

All Adobe Lightroom plugins are written in Lua. It's not possible to address the iPhoto API directly from Lua as the API is only available for AppleScript. The plugin exports the photos to a temporary location with Lua and triggers an AppleScript that imports the photos in iPhoto. The workaround is ugly for various reasons (an intermediate file is used for the Lua - AppleScript communication, the user sees the AppleScript popping up when exporting, etc.) so if anyone knows a decent Lua to AppleScript bridge it would be nice to know.

It's also the very first time I used Lua so feel free to optimize the code where needed. I'm planning to add the following when I can:

Features I would like to add but the iPhoto API doesn't support (yet). Let's hope one of the following iPhoto releases updates the API.

You can fork the source code from the Git repository.

Update: I haven't tested it myself but it should work in Lightroom 2 as Ingemar points out, will test it myself as soon as possible.

Meta

22 comments

#22 Simon → http://www.suffix.be

Thanks, it's about time to update the script. Added it to my todo list.

over 2 years later

#21 cassarole

same problem as mat/net. err==noErr from Lightroom 2.7 to iphoto 8.1.2 I would really like to use this feature....i'll be watching.

over 2 years later

#20 Mat|net

ops.. not working for me in Light 2.7, on Mac Leopard, from Iphoto 8. Export result in an error, and nothing into iPhoto. Here follows Lightroom's plugin manager log: Plug-in error log for plug-in at: /Library/Application Support/Adobe/Lightroom/Modules/iPhotoExportService.lrplugin **** Error 1 This plug-in’s post-processing task did not finish successfully. Assertion failed: err == noErr Any clue?

over 2 years later

#19 Simon → http://www.suffix.be

Small update: I moved the project source code from my old SVN repository to Github. Fork away if you like!

over 2 years later

#18 pef

Hi Simon, Thanks for the link http://svn.suffix.be/public/lightroom/iPhotoExportService.lrplugin/ but did not find sources from the iPhotoImport.app in the repository. Could you please add it in ? Thanks pef

about 1 year later

#17 Simon → http://www.suffix.be

@Pef It has been a while since I worked on it but you are right, maybe it's time to update it now that the new iPhoto is out. It's open source, you should be able to get it from http://svn.suffix.be/public/lightroom/iPhotoExportService.lrplugin/

about 1 year later

#16 Pef

Hi ! What a nice plugin ! Did you manage to "name the new iPhoto event" ? It would be great if the new event take the folder name within the picture to export are stored... I tried to take a look into the code to fix this but the iPhotoImport.app of the SVN repository is still "closed-source".

about 1 year later

#15 Freddy Drogt

Wonderfull!! Tool work with Iphoto 8 and Lightroom 2

11 months later

#14 K → http://en.wikipedia.org/wiki/Hard_link

Great plugin! You could use a hardlink instead of copying the file to avoid duplication. The terminal command in OS X would look like "ln ". I have no idea how this works on Windows or how to do it in LUA... Wikipedia says that it's possible in W2k and beyond. Thanks again!

11 months later

#13 LR

Very cool, thanks.

11 months later

#12 Ingemar

Almost perfect. Works in Lightroom 2. I was looking for an export option that exports to folders as organised in LR. I use folders to organise photos per project or event and it is a drag to export every folder individually to keep it organised.

8 months later

#11 Todd → http://www.poweredbysteam.com

Just wanted to add that this plugin works flawlessly with Lightroom 2.0. I don't see any AppleScript pop-ups but photos are added along with ratings and tags, as expected.

8 months later

#10 bedub

I've been looking for something like this for so long!! Thanks so much for your hard work.

6 months later

#9 Aled

Brilliant. So simple, thanks!

4 months later

#8 Rasmus → http://rasmusrasmussen.com

Wonderful plugin. Thank you so much for making and sharing this.

3 months later

#7 Simon → http://www.suffix.be

Kris, it makes copies of the files, not references. I know this is not ideal as it keeps 2 versions of the same photo so any ideas about this are more than welcome. Anybody knows how this can be done?

3 months later

#6 Kris

Will the photos be copied or will iPhoto just use references to the original files just as LR does? Thanks, Kris.

3 months later

#5 Harsh

This is nice! Does it export tags also?

3 months later

#4 Victor Gavenda

Just found your plug-in. It does EXACTLY what I needed! Thanks so much, Victor

2 months later

#3 Joel

Great plug in! it seems to just hang using LR 1.3.1 and iPhoto 4.0.3. It looks like it does the import, but it doesn't complete the script. I have to close out of LR. I'm not very familiar writing scripts, but I can try and take a look at it.

2 months later

#2 Simon → http://www.suffix.be

No problem Yash, needed it for myself so I can as well share it. Feedback is always welcome!

2 months later

#1 Yash → http://itsmeyash.blogspot.com

Thanks for the lightroom to iphoto plugin. its really neat!

2 months later

Something to say?


Schoeters Simon
home Jozef Eerdekensstraat 26
3001 Heverlee
Vlaams-Brabant
Belgium