opensc/MacOSX/OpenSC_Uninstaller.applescript
Frank Morgner 25f785e482 macOS: Use a better Uninstaller
An apple script converted to an App calls the local
/usr/local/bin/opensc-uninstall
2017-02-20 21:37:44 +01:00

8 lines
405 B
AppleScript

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