> >> My question is: can I get a scripting bridge handle on iPhoto without making >> iPhoto launch? > > Scripting Bridge is about sending Apple events to an application. That > application must be running or you can't send it Apple events. That is
Thanks a lot for these insights. (Thanks also to all the others who answered similarly.) So it seems like I either have to use ScriptingBridge (i.e., have iPhoto fire up) or use an unofficial API. I was just wondering who Mail.app does it with its photo browser ... BTW: I am wondering about another thing. Right now I get the iPhoto handle like this: iPhoto_ = [[SBApplication applicationWithBundleIdentifier:@"com.apple.iPhoto"] retain]; (which starts iPhoto), I also instantiate an object for the iphoto albums like this albums_ = [[[iPhoto_ albums] get] retain]; then the user probably plays around a little bit with my app. But what happens, if the user closes iPhoto (while my app is still running) and then continues to play with my app, which then continues to access the iPhoto_ and the albums_ objects?? Best regards, Gabriel.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com