Play a sound when another application outputs to console
Try running a command like this in a Terminal window instead:

syslog -w|while read l;do [[ $l = *'message text'* ]]&amp;&amp;afplay /System/Library/Sounds/Blow.aiff;done

syslog -w is a shorter alternative to tail -f /var/log/system.log.