HELP! I need to change the name of an a AS exported email. But can't!

HELP! I need to change the name of an a AS exported email. But can’t!

So far my script saves the selected email out to a folder, however, in the same script, i need to shorten the name, add stuff to the name, copy the file, and label the folder.

The bit I am stuck on is that, at the moment, the name shortening, works on all the files in my ‘out’ folder. I need it to only work on the file that was just saved out of entourage.

Can anyone help me with this, as it is the first missing link in a long chain.

Thanks in advance!

Jason.