Advertisement
Guest User

FaceTime Monitor

a guest
Oct 22nd, 2010
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. repeat
  2.     repeat while application "FaceTime" is running
  3.         tell application "System Events"
  4.             try
  5.                 tell process "FaceTime"
  6.                     set s to size of window 1
  7.                     set x to first item of s
  8.                     set y to second item of s
  9.                     if x is equal to 638 and y is equal to 585 then
  10.                         tell application "FaceTime" to quit
  11.                     end if
  12.                     click button "Accept" of window 1
  13.                 end tell
  14.             end try
  15.         end tell
  16.     end repeat
  17.     delay 60
  18. end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement