2

has anyone tried to build an "archive" button for apple mail to move mails from the Inbox to All Mail in Mail.app (Mountain lion)?

there is this page: http://stl.techinno.nl/archive/ but it wont work with the mail version on mountain lion.

Thanks!

1 Answer 1

1

You could assign a shortcut to a script like this:

tell application "Mail" to tell account "Gmail"
    messages of mailbox "INBOX" whose flagged status is false and read status is true
    move result to mailbox "[Gmail]/All Mail"
end tell

This would only move selected messages:

tell application "Mail"
    selected messages of message viewer 1
    move result to mailbox "[Gmail]/All Mail" of account "Gmail"
end tell
3
  • ok, the second script worked very well...
    – otmezger
    May 23, 2013 at 9:03
  • how can I add it to the tool bar of mail?
    – otmezger
    May 23, 2013 at 9:05
  • I don't know, but there is another question about adding scripts to the toolbar. If you don't want to use a shortcut, you could also run the script with Alfred or Launchbar.
    – Lri
    May 23, 2013 at 15:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .