Here are two scripts I developed to export my photo library from Aperture. One exports jpeg images using a predefined setting, the second exports everything as masters.
Feel free to modify, and change. All the usual disclaimers apply. No warranty, as is… blah blah.
Oh for license, there is none. Do with it as you please.
Note: the paths and root folder for the images are hard coded and will need to be changed.