Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dustractor/64e7e832b2d09b348c69 to your computer and use it in GitHub Desktop.
Save dustractor/64e7e832b2d09b348c69 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