Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I want to be able to check if a word appears in a terminal window running a java application and then display a notification. Any ideas?
tell application "Terminal"
repeat 120 times -- ~ 2 minutes
if contents of front window contains "word" then
-- insert your code here