Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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.