Hello all,
I'm having problems getting AppleScript to add keywords to photos in iPhoto. No errors, but it just happily goes on as if nothing has happened.
I'd like to set the keywords for all the photos in the last set of images imported (the default "Last Import" album). I'm a little confused on whether I should create the keyword object first, since iPhoto's "assign keyword" command indicates it assigns only keywords that already exist to the currently selected photos. Assuming this is the case, here's what I have:
tell application "iPhoto" set imageTag to "mykeyword" set albumName to "Last Import" set propertyRecord to {name:imageTag} set newKeyword to make new keyword with properties propertyRecord select photos in album albumName assign keyword string imageTag end tell
However, even if I manually create the keyword in iPhoto, and comment out the portion that "makes" the keyword in AppleScript, it still does nothing.
Any ideas?
Best, dalmazio
|