This article is from the Mac Programming FAQ, by Jon Watte firstname.lastname@example.org with numerous contributions by others.
"Good" is an understatement. Just let users write scripts, load them
into menu items and go. Total systems integration in under a week,
including adding support for the AEOM to your application.
There is source code for an application called "MenuScripter" on the
developer CD which shows you how to do an application with all of the
menus being AppleScript scripts.