Report abuse


			
do shell script "open -a CCAAgent"

repeat
	set connection to true
	try
		do shell script "ping -c 1 google.com"
	on error
		set connection to false
	end try
	
	if connection then
		do shell script "killall CCAAgent"
		exit repeat
	end if
	delay 1
end repeat