Is it possible to make a trigger to open a VPN connection using the native VPN client?

87 views
Skip to first unread message

lloyd

unread,
May 28, 2013, 9:13:49 PM5/28/13
to blacktree-...@googlegroups.com
If it's possible to trigger the command "Connect VPN" from the VPN menu in the menu bar, could you tell me how?

Thanks for all the help so far.

Rob McBroom

unread,
May 29, 2013, 9:40:42 AM5/29/13
to blacktree-...@googlegroups.com
On May 28, 2013, at 9:13 PM, lloyd <lloyd.h...@gmail.com> wrote:

If it's possible to trigger the command "Connect VPN" from the VPN menu in the menu bar, could you tell me how?

I don’t think there’s anything built-in for that, but if it can be done via AppleScript, you could set up a trigger to run the script.

-- 
Rob McBroom
<http://www.skurfer.com/>

lloyd

unread,
May 29, 2013, 3:04:16 PM5/29/13
to blacktree-...@googlegroups.com, mailin...@skurfer.com


On Wednesday, May 29, 2013 9:40:42 AM UTC-4, Rob McBroom wrote:

if it can be done via AppleScript, you could set up a trigger to run the script.

In case anyone else is looking for this, I'll point to a script that appears to work fine - it toggles the connection on/off: http://markupboy.com/blog/view/toggling-vpn-with-applescript

 

onto...@gmail.com

unread,
Jun 2, 2013, 4:55:56 PM6/2/13
to blacktree-...@googlegroups.com
All I had to do was type "afp://[server-ip]/" into Quicksilver in text mode. The default action should be "Open URL". If you assign this to a trigger, that should work.
Reply all
Reply to author
Forward
0 new messages