2016年2月25日 星期四

use apple script to disable AppleUSBFTDI

tell application "Finder"
display dialog ("Check dongle is plugin.") buttons {"Ok"}
try
do shell script "sudo kextunload -b com.apple.driver.AppleUSBFTDI" with administrator privileges
end try
display dialog ("It work!") buttons {"Ok"}

end tell