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
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago