User:Yoana Buzova/ prototyping: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 6: Line 6:


   
   
<source lang=bash>
#!/bin/bash
while true; do
if pgrep Safari || pgrep firefox || pgrep Chrome  &>/dev/null; then
echo alive
sleep 4
pkill Safari
pkill firefox
pkill Chrome
/usr/bin/osascript <<-EOF
    tell application "System Events"
        activate
        display dialog "We are closed!"buttons{"Sorry"}
    end tell
EOF
else
echo DEAD!!!
fi
done
 
</source>




[[File:Closed.png]]]]
[[File:Closed.png]]]]

Revision as of 01:55, 22 May 2013

MY browser / mmths + yoana




Closed.png]]