OR in "...when window title contains"

In Apple Mail, I'd like to make my macro group:

Available when a focused window title contains: Inbox OR Sent

Is this possible? I've tried several things:

Inbox|Sent
Inbox\|Sent
"Inbox|Sent"
"Inbox\|Sent"
(Inbox|Sent)

Related:

Can I have it match against an empty title? For example

Available when a focused window title does not match: [an empty title]

Set the condition to “…matches” (not “contains”):

50-pty-fs8

Try with

.

or

.+
5 Likes

Thank you so much! Changing the condition got things working.

I was unable to get the empty title to match with either of those but it is hard to tell exactly what mail is doing in a new message.

Just checked it, the window name of a New Message window seems always to be New Message, even if not displayed in the title bar of the window:

16-pty-fs8

Indeed, this works for me:

53-pty-fs8