Applescript to Select/Unselect mail item with keyboard

Hi,

i am a newbie here, but was wondering if the following is possible or worthwhile in Applescript or if i should buy a macro recorder tool.

I want to add certain features to Mail, namely, I’d like to be able select individual mail items, for delete or whatever, but just select those items with a keystroke, like hitting the spacebar. If an item is already selected, hitting the spacebar would toggle its selection off.

Is is possible or worthwhile in Applescript?

Thanks

Russ