Getting an agents code from the $AssistAction field in an agents design note?

Getting an agents code from the $AssistAction field in an agents design note???

I have seen a couple of posts on this topic, but I haven’t seen very many soultions to it. I did notice this one, but I could not get it to work for me:

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/5354bea77ce5ddb685256e85005d329f?OpenDocument&Highlight=0,%24AssistAction

Does anyone know how I can get this information via LotusScript or CAPI? Examples are always nice!

TIA,

Tim E Brown