Skip to content

Instantly share code, notes, and snippets.

@kt3k
Created August 14, 2013 04:23
Show Gist options
  • Save kt3k/6227992 to your computer and use it in GitHub Desktop.
Save kt3k/6227992 to your computer and use it in GitHub Desktop.
AppleScript to turn on and off the EasyTether extension.
set state to do shell script "kextstat | grep EasyTether | cat"
if state is "" then
display dialog "turning on EasyTether"
do shell script "kextload /System/Library/Extensions/EasyTetherUSBEthernet.kext/" with administrator privileges
else
display dialog "turning off EasyTether"
do shell script "kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext/" with administrator privileges
end if
@kt3k
Copy link
Author

kt3k commented Aug 14, 2013

Open AppleScript Editor, copy and paste the above, save it as an application (not a script file) and the saved application works as an EasyTether on/off button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment