Skip to content

Instantly share code, notes, and snippets.

@hishma
Created July 13, 2011 15:24
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hishma/1080515 to your computer and use it in GitHub Desktop.
Save hishma/1080515 to your computer and use it in GitHub Desktop.
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