Re: Scripting Bridge usage, iPhoto example
Re: Scripting Bridge usage, iPhoto example
- Subject: Re: Scripting Bridge usage, iPhoto example
- From: "Jeffrey J. Early" <email@hidden>
- Date: Thu, 13 May 2010 22:50:50 -0400
On May 13, 2010, at 10:11 PM, Mark J. Reed wrote:
> On Thu, May 13, 2010 at 3:39 PM, Jeffrey J. Early
> <email@hidden> wrote:
>> I'm wanting to use the action "assign keyword" on a photo, but maybe that's just not
>> possible? I'm forced to actually select a photo first, then tell the *application* to
>> "assign keyword"?
>
> As far as I can tell, that's correct.
Okay, thanks.
> The command "assign keyword
> string" belongs to the application, not a photo object, which you
> should be able to tell by where it appears in the dictionary.
Well, that's where I'm confused. There's an "application" object that contains properties like "current album", but the command "assign keyword" and "reverse geocode" actually appear at a level above this (directly under iPhoto Suite). In fact, in the objective-c classes generated for ScriptingBridge, both the "photo" object and the "application" object actually inherit from this higher level class. I mean, there *must* be something wrong because it just doesn't make any sense to have a photo object respond to "next slide," which is how it's defined.
I don't know much about applescript (obviously), so that's why I'm so confused about the AppleScript dictionary, but the objective-c definitions sure look fouled up to me.
Whether I fully comprehend what's happening or not, thank you -- this tells me which direction I have to go...
Jeffrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden