Applescript and Entourage

For Entourage2004 :
I want to provide a way of selecting files/folders which if they meet
certain criteria are either allowed to be attached in the normal
manner to the new message or if not they are moved to an appliance and a link to
the attachment is inserted into the message before sending it instead
of attaching the actual file. Is this doable using AppleScript ?