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: has <email@hidden>
- Date: Fri, 12 Dec 2008 22:51:26 +0000
Dalmazio Brisinda 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?
Note that System Events' GUI Scripting support is just a wrapper
around OS X's existing Accessibility APIs, which you can also access
directly from ObjC. Couldn't say which is the better approach in
practice as I've only used the former myself, although bearing in mind
the brittleness of solutions that control application GUIs
programmatically it's probably best to go with whichever is easier to
maintain.
Also, as a general design suggestion, given the lousiness of iPhoto's
scripting interface I would personally want to keep any iPhoto code as
isolated from my main program code as possible, hiding all the
nastiness behind a thoroughly abstracted API. That way, if iPhoto's
scripting interface changes between releases, those differences can be
supported by swapping in another class/script/whatever that knows how
to control the version being used. (This goes double for anything
involving GUI Scripting as that's even more likely to break.)
Again, as far as implementation is concerned, go with whichever you
find is easier to maintain. Personally I'd probably lean towards a
compiled, editable AppleScript, as that can be modified even in an
existing application bundle, allowing users to tweak it themselves if
necessary. But you pays your moneys, etc.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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