• 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: Ken Ferry <email@hidden>
  • Date: Sat, 15 Jan 2011 22:06:12 -0800

Hi Gabriel,

No, you cannot.

Scripting Bridge works by sending messages back and forth with a target
process.  If there is no process running, there isn't anything to
communicate with.  A scripting dictionary does not (and cannot) include
information about how to access the on disk data iPhoto uses to represent
your library.  It only contains information about how to ask the iPhoto
process for information.

There may be other ways to get at what you want (iPhoto has an XML file that
describes the library - I don't think it's for third party use, but I could
be wrong), but Scripting Bridge will require launching the app.

-Ken

On Fri, Jan 14, 2011 at 10:10 AM, Gabriel Zachmann <email@hidden>wrote:

> My question is: can I get a scripting bridge handle on iPhoto without
> making iPhoto launch?
> And can I retrieve a list of iPhoto albums and a list of images in an album
> without making iPhoto launch?
>
> Right now, I am using
>  iPhoto_ = [[SBApplication applicationWithBundleIdentifier:@"com.apple.iPhoto"]
> retain];
> but that fires up iPhoto, which can be a bit slow.
> Also, as a user, I find it a bit disturbing that iPhoto has been launched
> by another program.
>
>
> Best regards,
> Gabriel.
>
>
> _______________________________________________
>
> 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
>
_______________________________________________

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

References: 
 >Get iphoto scripting bridge handle without starting iphoto? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Get iphoto scripting bridge handle without starting iphoto?
  • Next by Date: Re: How to change the product name with command line builds?
  • Previous by thread: Get iphoto scripting bridge handle without starting iphoto?
  • Next by thread: Re: Get iphoto scripting bridge handle without starting iphoto?
  • Index(es):
    • Date
    • Thread