File: OpenSC_Uninstaller.applescript

package info (click to toggle)
opensc 0.27.0~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,844 kB
  • sloc: ansic: 184,917; xml: 6,535; sh: 2,766; makefile: 1,035; cpp: 382; lex: 92
file content (8 lines) | stat: -rw-r--r-- 405 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
tell application "System Events"
	if exists file "/usr/local/bin/opensc-uninstall" then
		set result to do shell script "/usr/local/bin/opensc-uninstall" with administrator privileges
		display alert "Removal complete" message result giving up after 10
	else
		display alert "OpenSC is not installed" message "Could not find /usr/local/bin/opensc-uninstall" as critical giving up after 10
	end if
end tell