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'm running Apple Mail 6.2 on OS X 10.8.2.

I'm wondering how to clear flags easily, maybe a button exists or a shortcut is possible? Currently I need to press the down arrow in flag button and click "clear flag", which is really inconvenient.

I think AppleScript is highly promising, but I don't know how to do it.

share|improve this question
up vote 0 down vote accepted

According to this thread, copy below script into Apple Script Editor and then run

tell application "Mail"
set selectedMessages to (selected messages of front message viewer)
if (count of selectedMessages) is greater than 0 then
    repeat with theMessage in selectedMessages
        set flag index of theMessage to 1
    end repeat
end if
end tell

Your selected message will flag with Orange. You can flag message with other color by replacing 1 in the script

share|improve this answer
Great. I tested it out and discovered that to clear flag just replace the index with -1. Thanks. – 4ae1e1 Jan 8 '13 at 16:49

Your Answer


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.