Applescript Studio's Call Method and iPhoto

I’ve created a simple AS app that allows me to drop an image from either the Finder or iPhoto 09 and then display the iPhoto metadata and IPTC metadata of that image.

All works well, but as has been documented on these forums, the drag/drop operation causes a spinning beach ball for 10 or seconds while the AS app waits to interrogate iPhoto. I’ve tried a solution on these forums by placing the appropriate code in an on idle handler, but this fails more often than not.

My question: is there a way to communicate directly with iPhoto from the AS app using the call method? If so, how can I access the currently selected image and its metadata in iPhoto using the call method?

Any hints would be gratefully appreciated.

Steve

Hi,

you can’t directly access any methods of iPhoto because there is no public header file.
But you could either in AppleScript Studio or (faster) with some ObjC or python code parse the XML library file to retrieve the data

This won’t help to get iPhoto metadata, but you can use AppleScript’s Image Events to directly get EXIF data from an image file.