Awesome script. Works like a charm! I did change the "if ... is" part to "if ... is not", just because it feels a little safer. So activeInterfaces is ever anything else that doesn't have the VPN connection in it, it dies:
...
if activeInterfaces is not "lo0 en0 en1 p2p0 fw0 vnic0 vnic1 tap0" then ...
Search found 1 match
- Sun Aug 05, 2012 7:31 pm
- Forum: Mac Support
- Topic: Bind Transmission to Interface with Applescript
- Replies: 2
- Views: 7254