Matte: iPhoto AppleScript export

The binary distribution of Matte comes with a simple AppleScript that you can use to export an album in iPhoto so you can then import that album into Matte, preserving the name, comments, and keywords you enter in iPhoto. The script is located in the scripts directory of the binary distribution, named iphoto-export.applescript.

Requirements

The script requires the following:

OS X
This script has been tested on OS X 10.4 and OS X 10.5. It may or may not work on other versions of OS X.
iPhoto
This script has been tested only with iPhoto 5. It may or may not work on other versions of iPhoto.
XML Tools scripting addition
The XML Tools scripting addition from Late Night Software is required. This is a free scripting addition, just follow the installation steps on their website to download and install it.

Performing the export from iPhoto

Follow these steps to export an album from iPhoto:

Select album to export in iPhoto

Click on the album (or albums) you want to export in iPhoto. This can be any album, including "smart" albums. Note that nested albums will not be exoprted.

Selecting album to export in iPhoto
Selecting album to export in iPhoto.

Run the iphoto-export.applescript script

Go to the Finder and open the iphoto-export.applescript file. This will open the script in the Script Editor application. Click the Run button to exectue the script.

The export script in Script Editor
The export script in Script Editor. Click the Run button to start.

The script will gather the details of the album you selected, and then ask you to choose a foler to export the album items to. It's a good idea to create a new folder for the export, because it will create a new folder for the album and a new XML file that contains the album detail information.

Choose a folder to export to
Choose a folder to export to.

The script will then copy the album items to your chosen folder, and create a file named metadata.xml that contains the detail information about the items.

Export results
The export results.

Create zip archive to upload into Matte

In order to import your items, you need to create a zip archive out of the exported album folder(s) and the metadata.xml file. You can easily do this by selecting those items in the Finder, right-clicking (or control-clicking) on them and choosing Create Archive (OS X 10.4) or Compress (OS X 10.5.

Create zip archive
Create a zip archive.

This will create a zip file named Archive.zip.

Import the zip archive into Matte

Now you can import the Archive.zip file into Matte. From the Add screen, select the Archive.zip file you just created, and be sure to check the Auto Album checkbox so that Matte re-creates your albums for you.

Import items into Matte
Import the items into Matte.

After the import completes, you will have the album available in Matte, ready to be shared.

SourceForge.net Logo