Getting the From name in Entourage

I am trying to write a script that will reply to a selected email with text that includes the name in the from field of the original email, i.e. “Hi XXXXX” where XXXXX is the first name of the sender. I’ve tried a lot of things but just can’t crack it. Any help greatly appreciated.