Browse the docs

mailFlagged

Returns 1 when the selected message is flagged, otherwise 0.

Keyboard Maestro: MAILFLAGGED

Details #

mailFlagged() takes no arguments and returns a number: 1 when the selected message is flagged, otherwise 0.

Parameters #

Takes 0 arguments. {{ mailFlagged() }}

Examples #

mailFlagged()
→ 0

Gotchas #

  • Needs Automation permission for Mail. It reads the first selected message in Mail; when Mail isn't running, nothing is selected or Mail doesn't answer within about 5 seconds, the answer is 0.

  • Takes no arguments.