I'm writing a command-line daemon to read images from iPhoto.
I can init and load an MLMediaLibrary
fine from a full-blown Cocoa application, created using the Xcode project creation tools. However, when I try and do the same from a command-line tool (also created in Xcode), the following error appears in Xcode console window:
MLMediaLibrary error obtaining remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "Couldn’t communicate with a helper application."
How can I access MLMediaLibrary
from a command-line tool?