This is a fantastic idea. I've followed your lead by creating a Run Ruby Script action.
This action uses the new Scripting Bridge framework in Leopard to turn the NSAppleEventDescriptors into more user-friendly objects. Feel free to poach the idea for use in your own action.