Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Convert IPTC caption to iPhoto comment via AppleScript Apps
I wanted to use the IPTC caption field as a comment in iPhoto, so I wrote this AppleScript. Copy and paste it into Script Editor, and save it as a script. (You'll also need to have GraphicConverter installed.)

Select the images for which you want to have the IPTC caption tag converted to an iPhoto comment, then run the script. Select how you want to log errors (with a special keyword, or in an error log file).

[robg adds: I haven't tested this one.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,079 views]  

Convert IPTC caption to iPhoto comment via AppleScript | 3 comments | Create New Account
Click here to return to the 'Convert IPTC caption to iPhoto comment via AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Convert IPTC caption to iPhoto comment via AppleScript
Authored by: teece on Feb 21, '07 11:50:43AM

Thanks for the tip.

I'm actually writing an Applescript/Perl script to do this, and other stuff right now.

Word to the wise: Applescript is crazy slow if you try to do this over hundreds of photos, especially if you throw in keywords and titles, and you have to resort to GUI scripting if you want to set the rating (arg!).

You don't need GUI scripting to set a keyword, though: you can use the "assign keyword" function of iPhoto. It takes a string.

I'm doing as much of it as I can in Perl, as it's faster to parse the output of mdls, rather than get metadata from iPhoto via Applescript (for the iPhoto->IPTC direction). In the other direction (IPTC-iPhoto), I can't really avoid Applescript, at least not without doing something pretty hackish.



[ Reply to This | # ]
how does existingKeywords work?
Authored by: airdrummer on Feb 22, '07 06:41:09AM
i'm new 2 applescript & not familiar w/iPhoto, but in ur addKeywordsToIPhoto function, u 1st
set existingKeywords to name of every keyword
then
if existingKeywords does not contain thisKeyword then ...add keyword via sys-events gui...
then
set existingKeywords to existingKeywords & thisKeyword
why is this here? the list is init'd on entry, doesn't seem 2 b saved anywhere...just curious...

[ Reply to This | # ]
how does existingKeywords work?
Authored by: osxpounder on Feb 22, '07 12:01:07PM

ur lazee speling = 2 much trouble 2 read. sori.



[ Reply to This | # ]