Here is a quick script to solve a problem. I wanted to be notified if my computer saw “POTA” in a CQ on WSJT-X. As was pointed out to me by K2CR on Mastodon, there is an ALL.TXT file that has everything that you see in the messages window coming through. On the Mac, it lives in:
~/Library/Application Support/WSJT-X
With that in hand, one can simply tail the file and watch for the string to show up.
On my machine this worked very nicely:
tail -F ALL.TXT | awk '/POTA/ {system("say boom")}'
I could probably find something a little more creative for the system to say, but it works.