i was working on a mail apple script and im not good at it but i wanted in a box on my computer when i hit a key combo to mark all the messsages read and move them
this is kinda what i got
tell application "Mail"
activate
window
check for new mail
move reference to mailbox
perform mail Markasread with messages in mailboxes SavedMail
end tell