Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found this script on this site:

tell application "Mail"
    selected messages of message viewer 1
    move result to mailbox "[Gmail]/All Mail" of account "Gmail"
end tell

Is there a way to take the account of the selected message as an input? I have three different accounts and don't want three different scripts…

Thanks!

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.