Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 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
share|improve this answer
    
ok, the second script worked very well... –  otmezger May 23 '13 at 9:03
    
how can I add it to the tool bar of mail? –  otmezger May 23 '13 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 '13 at 15:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.