Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on idle
- tell application "System Events"
- tell current location of network preferences
- set VPNService to the service "vpn-evan" -- replace this with the name of your VPN connection
- if VPNService is not null then
- if current configuration of VPNService is not connected then
- beep
- beep
- beep
- connect VPNService
- end if
- end if
- end tell
- end tell
- -- in "idle" blocks, the number returned is how long to sleep until running again
- return 60
- end idle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement