• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get iphoto scripting bridge handle without starting iphoto?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get iphoto scripting bridge handle without starting iphoto?


  • Subject: Re: Get iphoto scripting bridge handle without starting iphoto?
  • From: Gabriel Zachmann <email@hidden>
  • Date: Mon, 17 Jan 2011 12:34:55 +0100

>
>> 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.


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get iphoto scripting bridge handle without starting iphoto?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Mutable to-many relationship not observable
  • Next by Date: Re: Question about split view
  • Previous by thread: Re: UIImagePickerController is permanently blowing away the phone's own status bar.
  • Next by thread: Re: Get iphoto scripting bridge handle without starting iphoto?
  • Index(es):
    • Date
    • Thread