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

10.4: An AppleScript to import metadata into iPhoto 6 Apps
Tiger only hintI haven't been using iPhoto in the past, because I prefer keeping my photos in a specific folder structure. Since version 6 will handle images without copying or moving them, I decided that it is time to take a plunge and start using iPhoto. I was disappointed, however, to see that tagging with keywords was not improved in this version. Since I have all of my photos' metadata in IPTC fields, I only needed a script that would import keywords, titles and comments into iPhoto. It took quite a few hours of work (it's my first large AppleScript program) and testing, but I was able to accomplish that.

The script will only work in Tiger, as it uses Spotlight to extract metadata from images. Keywords, titles and comments are added for photos selected as of the time the script is run, and new keywords are added to iPhoto automatically. Importing of each of the three (keywords, titles, and comments) can be turned on and off individually.

I decided to make the source available so that others can learn from it and, hopefully, improve upon it. The script is too long to paste here, but it can be downloaded from this entry on my blog. Instructions and caveats are included in the script's comments.

[robg adds: In the interest of sharing the server load, I've also mirrored the script here on macosxhints.com. I have not tested it, however.]
    •    
  • Currently 1.60 / 5
  You rated: 1 / 5 (5 votes cast)
 
[18,141 views]  

10.4: An AppleScript to import metadata into iPhoto 6 | 6 comments | Create New Account
Click here to return to the '10.4: An AppleScript to import metadata into iPhoto 6' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: An AppleScript to import metadata into iPhoto 6
Authored by: alxalx on Jan 20, '06 01:39:14PM

I just got iPhoto 6 and I imported pictures from different websites. The keyword tab under Photo Info panel was automatically populated with a series of keywords that I never entered. So, I think that IPhoto 6 does support automatic import of metadata. Question for me is... "How do I disable that?"



[ Reply to This | # ]
10.4: An AppleScript to import metadata into iPhoto 6
Authored by: barrrt on Jan 21, '06 09:01:06AM

I thought so too after importing first few rolls, but only 5 keywords out of expected 30 or so were added, and each was assigned to only one or two photos. Also, since I am maintaining keywords and other metadata in other programs, I wanted something that can update and add keywords at any time, not only during import.

As to your question, I am not sure how this could be disabled. I am guessing this is a bug, but whether Apple intended to have iPhoto importing metadata, but failed, or not importing and somehow it gets through on some photos, is anyone's guess. I'd imagine version 6.01, when released, will answer that question.



[ Reply to This | # ]
iPhoto 6 metadata import bugs
Authored by: jfaughnan on Jan 24, '06 10:36:30AM

In a thread on Apple's Discussion groups about library merging techniques we noted that techniques that worked with iPhoto 5 no longer work. In particular, keyword tagging gets mangled on import.

So there may be several bugs related to keywords in iPhoto 6. I'm planning to wait for 6.01 before installing.

---
--
John Faughnan
jfaughnan@spamcop.net
www.faughnan.com



[ Reply to This | # ]
not the first applescript submitted for this purpose...
Authored by: baronworm on Jan 20, '06 02:04:50PM
Back in November we saw a similar hint:
... I have written a couple of Applescripts that allow you to import IPTC keywords to, or export your iPhoto keywords from, the images in your iPhoto library. ...
Link to that script: scriptbuilders.net

Note that I didn't write this older script, nor do I have any idea if it works with iPhoto6.

[ Reply to This | # ]
corrected link
Authored by: baronworm on Jan 22, '06 04:00:48PM
Bad link in my first response, sorry. Here's the fixed link to that older article I was talking about:

http://www.macosxhints.com/article.php?story=20051113185618105

[ Reply to This | # ]
not the first applescript submitted for this purpose...
Authored by: randyharris on Feb 24, '06 01:32:52PM

"Since version 6 will handle images without copying or moving them"

How exactly can this be done. I'm brand new to the Mac and iPhoto, I prefer how other programs like Picasa let you maintain your own folder structure for storing photos. I don't know how to accomplish that with iPhoto.

Any help would be greatly appreciated!

Thanks,

Randy



[ Reply to This | # ]