Aperture AppleScript – Export & Restore Metadata
Aperture can export *some* of the metadata associated with your images quickly & easily. It can’t, however, reimport that data nor can it export all of the metadata from your images.
Hence these AppleScripts.
The first one will export the metadata for all selected file. It will save the data to a text file with a header row so that you can determine what data corresponds to what column (easy import into database or spreadsheet). It will export EXIF, IPTC and some custom metadata. You can customize the order and determine what fields are exported by editing the ‘theIPTC’ variable list.
export-metadata-to-file-06scpt1
The second script will read an export file (with header) and apply metadata to images based on their name.
restore-metadata-from-file-06scpt1
Technorati Tags: Aperture, AppleScript

This post has 6 comments
April 7th, 2009
Hello, your script seems exaclty what I am currently looking for. But it’s not clear how to install it inside Aperture so that it can export custom metadata from within the application. Thank you very much for clarification.
April 8th, 2009
You can run the script from within Script Editor or from the Script menu item. You can enable the script menu by opening the AppleScript Utility (/Applications/AppleScript/) and checking ‘Show Script menu in menu bar’ – this will show a little scroll icon in the menu bar. Then open Aperture and activate the Scripts (scroll) menu and choose Open Scripts Folder > Open Aperture Scripts Folder. A folder will open in Finder and any AppleScript you put in there will show in the Scripts menu.
April 8th, 2009
Thank you for your prompt reply. Unfortunately, this has corrupted the chosen file and I had to remove it from Aperture, then find it back from backups and re-edit metadata… I really don’t understand what has happened.
April 11th, 2009
Ouch! The script should not be able to corrupt a master file. It only reads from and writes to the Aperture database. Perhaps your Aperture database is damaged. You can rebuild your Library by holding Command-Option when you launch Aperture. Sometimes that can really help when things aren’t quite working right.
October 22nd, 2009
Hi.
Thanks for this – it could be very useful….
However, having tried the export script it doesn’t seem to do anything after the images in a project are chosen. No text file I can find is exported.
Could this be relevant:
set srcFile to choose file
– set srcFile to alias “BG_MBP2:Users:brett:Desktop:Aperture-Metadata.txt”
Is this specific do your desktop and does it need to be changed?
Thanks, Tim
February 1st, 2010
Thank you very much…