Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. on idle
  2. tell application "System Events"
  3. tell current location of network preferences
  4. set VPNService to the service "vpn-evan" -- replace this with the name of your VPN connection
  5. if VPNService is not null then
  6. if current configuration of VPNService is not connected then
  7. beep
  8. beep
  9. beep
  10. connect VPNService
  11. end if
  12. end if
  13. end tell
  14. end tell
  15. -- in "idle" blocks, the number returned is how long to sleep until running again
  16. return 60
  17. end idle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement