Jump to content
linuxmake

VPN & SMB-Server connect/disconnect workflow

Recommended Posts

Hi Folks, 
 
nearly every time I have to connect to my companies VPN I need the samba shares, as well. So I decided to automate connecting to VPN and mounting the shares. It is so boring to do that by hand every time. In march, I wrote about that in my blog http://bit.ly/XB7dXi (only German language). At that time I didn't know about Alfred and I started the apple scripts with the software Butler or with a double-click.
 
Meanwhile I only use Alfred to automate the things on my Mac. I build a workflow to connect our VPN and samba shares. An it works like a charm  :) ! The workflow I created looks that way:
 
AlfredApp_Blog.png
The scripts are still apple scripts, but I tried to make them more easy. To use them, simply open the scripts in Alfred and change the defined variables to your individual settings. It is well commented (in English, so all of us can use it, not only Germans) The connect script needs a couple of simple variables, the disconnect script only two.
 
Credits: The part of connecting to the VPN appears first on http://blog.schmehr.de, a site that doesn't exist anymore. 
 
Feel free to give me feedback or change everything you need in the workflow. Remember, it s my first workflow and script in apple script. Maybe you have an idea to put all the stuff in one script.
 
You can download the initial version of the workflow out of my dropbox: http://bit.ly/1caGM0p
 
Happy connecting ;-)
 
Kind Regards
 
U. Ivens

 

P.S.: You also can find an article about that workflow in my Blog.

Edited by linuxmake

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...