Beginner script questions using Mail

I am trying to write a script that I can distribute to all users that will standardize their signature file. While I don’t expect anyone here to write it for me ( I learn by doing), I am hoping for some newbie help.

I am not real clear on how to read the dictionary information so my first question is how do I extract the user’s full name? I can’t seem to find anything in the dictionary that provides that. There is an element called ‘Mac account’ but I don’t know how to get the information in it or if it even contains what I want. TIA.

The full name is a property of an account, so you can query that:

tell application "Mail"
   set username to full name of account 1
end tell

but this assumes the user entered their name in their email client.

An alternative would be to query System Events, which gets the name from the user database, independent of the email client:

tell application "System Events"
   get full name of current user
end tell

Thanks for the reply. However, what I am really looking for his how I find this out (other then asking here). None of the books on Applescript I have contain anything like this. In addition, the dictionary for Mail is also missing any information that ultimately gets me to where you suggested.