This posting is older than 6 months and can contain outdated information.
Thanks for asking.
You can use the Behaviour Construction Kit and Custom Actions to
create AppleScript actions that execute shell commands.
For information on how to execute shell commands in AppleScript and
also pass along AS variables, please see
http://developer.apple.com/technotes/tn2002/tn2065.html
Best regards,
Felix Schwarz