How could I setup a keyboard shortcut for Mail.app in OSX Lion so an email in the inbox, which is still unread, when I use this shortcut is moved automatically to some other previously defined folder?
Open up Automator and create a new Service. Set it to receive "no input", then drag Run AppleScript from the left pane to the right.
Paste the following script — note that you have to change
If you only want it to affect the general inbox:
Save this service. Then, under System Preferences » Keyboard » Keyboard Shortcuts, create a new keyboard shortcut for this service.
And you're done.
* You can find out the account name by going to Mail's preferences, then under Accounts, see the Description line.
|show 3 more comments|