Last active
December 29, 2018 19:31
-
-
Save JosephGregg/544f596d6b161f0d063cbd30395fab55 to your computer and use it in GitHub Desktop.
VPN Killswitch to quit apps when VPN connection drops / Applescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set apps to {"Transmission", "Keybase", "Signal"} | |
set notificationBox to "Your apps have been killed as the VPN connection was terminated at " & (current date) & "." | |
repeat with targetApp in apps | |
tell application targetApp to quit | |
end repeat | |
display dialog notificationBox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment