Newbie question - add Keywords to photos
Newbie question - add Keywords to photos
- Subject: Newbie question - add Keywords to photos
- From: Topher Sabot <email@hidden>
- Date: Fri, 15 Jun 2007 13:31:18 -0600
- Thread-topic: Newbie question - add Keywords to photos
Hi _ I am trying to write a script that will add specified keywords to a
photo. My plan is to use it as a Folder Action so when images are added to
a specific folder, certain keywords are automatically added.
I am currently getting the following error
NSReceiverEvaluationScriptError: 4
Here is the script I wrote to add the keyword
set this_file to choose file
try
tell application "Image Events"
launch
-- open the image file
set this_image to open this_file
-- perform action
tell this_image
set value of metadata tag "Keywords" to "Bozeman"
close
end tell
-- save the changes
save this_image with icon
-- purge the open image data
close this_image
end tell
on error error_message
display dialog error_message
end try
Thanks so much!
_______________________________________________
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