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: "Mark J. Reed" <email@hidden>
- Date: Fri, 5 Dec 2008 19:55:04 -0500
This works for me:
tell application "iPhoto"
assign keyword string "My Tag"
end tell
but if the string "My Tag" doesn't exist as a keyword, it fails
silently. To check this:
set myTag to "My Tag"
tell application "iPhoto"
try
get keyword myTag
on error
display dialog "Sorry, keyword '" & myTag & "' doesn't exist"
end try
assign keyword string myTag
end tell
I tried creating a new keyword, but I couldn't get it to work:
make new keyword at end of keywords with properties {name: "someName"}
gives me
iPhoto got an error: AppleEvent handler failed.
_______________________________________________
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