Re: How to add keywords to photos in iPhoto?
Re: How to add keywords to photos in iPhoto?
- Subject: Re: How to add keywords to photos in iPhoto?
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 13 Dec 2008 19:37:06 -0500
- Thread-topic: How to add keywords to photos in iPhoto?
on 2008-12-12 3:34 PM, Dalmazio Brisinda at email@hidden wrote:
> On a side note, would you recommend that writing AppleScript then converting
> it to Scripting Bridge is a good development path vs. just keeping things in
> AppleScript? Is it worth the extra effort in other words for GUI scripting?
> Are the performance gains (if any) worth it?
Are you asking what is the best way to control another application's user
interface from within your own application? Off the top of my head, I would
say that if you're willing to go to the trouble of moving from embedding
AppleScript scripts in your application to using Scripting Bridge, you might
as well go all the way and use the accessibility API directly. I've written
a lot of code to the accessibility API. There is a learning curve, but once
you get the hang of it, the accessibility API is pretty straightforward to
use.
I think you probably would see a performance improvement with Scripting
Bridge over AppleScript, but I haven't really thought it through. My guess
is that in most contexts it wouldn't be enough to justify the effort.
> Oddly, I had a look for
> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices
> .framework/Resources/English.lproj/ActionDescription.strings but it doesn't
> seem to exist on my system. There is only an InfoPlist.strings file in the
> final English.lproj folder (running 10.5.5).
I guess it's possible that this is added by installing developer tools, but
that would surprise me.
> I know this is a bit off-topic, but If I can indulge your attention a little
> further, how about accessing the context (control-click) popup menu for an
> album in iPhoto? The documentation seems to be a little sparse, but I'm
> thinking perhaps 'AXShowMenu' might work in some incantation. Or perhaps some
> combination of keypress (control) and perform click over the appropriate
> album?
I don't know the answer. You should be able to try it by writing a script
that selects an album and performs the "AXShowMenu" action. But it may be
possible -- I have a vague recollection -- that "AXShowMenu only works with
pop-up menus.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
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