I'd like to see you do it NoteTab style. Check out the Clip language -- and the embedded clip window that lets you write scripted macros.
I don't expect that you'll recreate that language, just look at how it works -- it's really functional, with libraries of macros displayed. It can pretty much do anything at all. I wrote a full ebook editing and file-management suite in it.
I'd personally prefer to avoid a scripting language that looks like C code. It should look like BASIC actually. Something slightly more abstracted means that even doofii like me can code complex macros.
m a r