Attaching files into Current Cursor Position

Hi All,

I want to attach files into the current cursor position of Body part of the memo form.

We can attach files into cursor position using Attach tool bar button. Similarly i want to attach files using script.

Is it possible.

Anybody suggest me an idea to resolve this issue

Thanks in advance

Maju