Browse the docs

mailReadStatus

Returns 1 when the selected message has been read, otherwise 0.

Keyboard Maestro: MAILREADSTATUS

Details #

mailReadStatus() takes no arguments and returns a number: 1 when the selected message has been read, otherwise 0.

Parameters #

Takes 0 arguments. {{ mailReadStatus() }}

Examples #

mailReadStatus()
→ 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.