
We hope Apple will issue an update for this issue soon, because a few third-party programs like HoudahGeo rely on the AppleScript interface for iPhoto to implement their functions. The API for implementing the AppleScript commands in third-party programs is still available as it always has been, but in implementing the changes to correct the importing problems with the initial iPhoto '11 release, Apple may not have fully tested this API. Apple quickly rushed out the 9.0.1 update to address importing and upgrading issues some people were having, many of which revolved around extra features such as calendars and potentially some GPS-related content in their libraries.

The commands did work in iPhoto '11 version 9.0.0, so this is likely a small oversight by Apple where the function for setting the photo's latitude is not being handled properly by the latest update.

Set myPhotos to ( every photo whose image path is "/Users/pierre/Pictures/iPhoto If you run an AppleScript similar to the following that uses the "set latitude" or "set longitude" commands, then you may get an error claiming the "class is not key value coding-compliant for the key gpsLatitude." This implementation has worked for a number of iPhoto revisions, but in the latest update from Apple it appears that setting GPS coordinates with AppleScripts is not working properly. The idea in part was to encourage developers of third-party programs like HoudahGeo to edit the photo information in the iPhoto library without directly accessing the library itself. Starting with iPhoto 8.0.3, Apple implemented support for editing the geographical positioning tags for photos using AppleScript.
