Skip to content

Instantly share code, notes, and snippets.

@hishma
Created July 13, 2011 15:24
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Copy the Aperture Version Name to the IPTC ObjectName (Title field in Aperture)
-- Copy the Aperture Version Name to the IPTC ObjectName (Title field in Aperture)
tell application "Aperture"
set selectedImages to (get selection)
if selectedImages is {} then
error "Please select an image."
else
repeat with i from 1 to count of selectedImages
tell library 1
tell item i of selectedImages
set versionName to (get value of other tag "VersionName") as string
log versionName
make new IPTC tag with properties {name:"ObjectName", value:versionName}
end tell
end tell
end repeat
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment