Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Kill Symantec AntiVirus scan-on-connect windows' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Kill Symantec AntiVirus scan-on-connect windows
Authored by: CajunLuke on Sep 06, '06 10:30:51AM

Yes, this does work, and, yes, it does end the scan.

I use this to automatically dismount a partition of an external disk that I don't want cluttering up my desktop. (It is set to run with Do Something When when the other martition mounts - aka, when I plug the disk in.)


display dialog "Unmount Vingilot?" buttons {"Yes", "No"}
set choice to the button returned of the result

if choice is "yes" then
	try
		do shell script "killall SmallScanner" user name "root" password "--" with administrator privileges
	end try
	try --suppress error messages
		set output to do shell script "diskutil unmount /Volumes/Vingilot"
		if output contains "failed" then
			do shell script "sleep 16;diskutil unmount /Volumes/Vingilot"
		end if
	end try
else
	--do nothing
end if


[ Reply to This | # ]