Help ! Finding and Attaching the files in e-mail

I have to find all file attachments in a particular document, find if the name of the attachment begins with “ABC”, if yes then attach the file to an e-mail and send it out.Any ideas how to do this using Lotus script?

Do I have to extract the file to the hard-disk before attaching it to the mail document?

Thanks for the help.