Re: Get iphoto scripting bridge handle without starting iphoto?
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