Previously I've used the script underneath as a fast way to mark everything in my Mail as read; including junk mail and every account. I've got a lot of emails coming that's good to have, but doesn't require any work - so the workflow works as a way of purging the system for unnecessary unread mail. However, after switching over to Airmail on all platforms (A great idea that I should've come up with earlier) I quickly noticed how much I missed the workflow. By all means, I'm no tech-wizard and the furthest I've gone in my quest to get this working is exchanging "Mail" with "Airmail 3" (as well as with the .app suffix), which definitely didn't work. Could anyone of you be of any assistance here?
tell application "Mail"
set allAccounts to the name of every account
repeat with currAccount in allAccounts
set unreadMboxes to (every mailbox in account currAccount whose unread count is not 0)
repeat with currMbox in unreadMboxes
set (the read status of every message in currMbox whose read status is false) to true
Please and thank yous.