Mac OS X Hints: Using

Mac OS X Hints: Using The GIMP with iPhoto. [mac.scripting.com]

Very cool! This uses the trick of calling Unix commands from AppleScript using the command do shell script. It’s also possible to run Unix commands from RU by using sys.unixshellcommand.