Apple's Create New Email Account script

I need to add an email account to AppleMail, and I thought I’d start by modifying Apple’s own “Create New Mail Account.scpt” script, found on Mac OS X, in the Mail/Scripts folder.

The problem I’m experiencing is that Apple’s own script (unmodified), doesn’t work for me. It gives me an error: “Mail got an Error: NSReceiverEvaluationScriptError: 4”.

It did create the POP account, but it did not add the SMTP server username/password properly. (left the fields blank). This may be a clue. I’m basically trying to add a POP account, and an SMTP server with a username/password.

Can anyone else verify that this is a problem? I’m running Mac OS X Panther.