Automated (scheduled) VPN connection?

Discussion in 'Mac Programming' started by mvmanolov, Nov 3, 2014.

  1. mvmanolov, Nov 3, 2014
    Last edited by a moderator: Nov 3, 2014

    mvmanolov macrumors 6502a

    Joined:
    Aug 27, 2013
    #1
    Hi all.

    I don't have any programming skills :( but, I want to setup a scheduled vpn connection. I found a script that forces a vpn connection at boot/login. But i want to alter that so that i can connect to the vpn at particular day of the month and at a particular time. Any ideas?

    Here is the script i found:

    Code:
    on idle
        tell application "System Events"
            tell current location of network preferences
                set myConnection to the service "VPN University"
                if myConnection is not null then
                    if current configuration of myConnection is not connected then
                        connect myConnection
                    end if
                end if
            end tell
            return 120
        end tell
    end idle
    Than you in advanced!
    M,
     
  2. mvmanolov thread starter macrumors 6502a

    Joined:
    Aug 27, 2013
    #2
    no one has any input on this?

    Am i asking the wrong kind of questions?
     

Share This Page