Difference between revisions of "VPN AppleScript Auto Reconnect"
Line 67: | Line 67: | ||
<div class="right"> | <div class="right"> | ||
<p> | <p> | ||
− | + | 4. Click on the '''AppleScript Editor''' icon in the menu bar and click on '''Open Scripts Folder''' to open the '''Scripts''' folder where we'll put the scripts. | |
<br/> | <br/> | ||
</p> | </p> | ||
Line 82: | Line 82: | ||
<div class="right"> | <div class="right"> | ||
<p> | <p> | ||
+ | 5. Unzip the downloaded scripts and move the whole content to the Scripts folder you just opened.<br/> | ||
+ | <br/> | ||
+ | The folder is located at<br/> | ||
Macintosh HD > Users > ''your username'' > Library > Scripts | Macintosh HD > Users > ''your username'' > Library > Scripts | ||
<br/> | <br/> | ||
Line 97: | Line 100: | ||
<div class="right"> | <div class="right"> | ||
<p> | <p> | ||
− | + | 6. Click on the '''AppleScript Editor''' icon in the menu bar and click on '''Start_VPNscript'''<br/> | |
+ | <br/> | ||
+ | Setup Complete!<br/> | ||
<br/> | <br/> | ||
+ | There are some limitations to this script. Once it's started, you CANNOT disconnect from the VPN or close your torrent program as the script will automatically reconnect to the VPN and launch the program. The only way to stop the script is by restarting the computer. | ||
</p> | </p> | ||
</div> | </div> | ||
Line 122: | Line 128: | ||
The following steps are only required if you did not name your VPN connection '''BTGuard VPN''' or if your favorite torrent client isn't listed above.<br/> | The following steps are only required if you did not name your VPN connection '''BTGuard VPN''' or if your favorite torrent client isn't listed above.<br/> | ||
<br/> | <br/> | ||
− | 1. | + | 1. To edit the script files. Open the AppleScript Editor, click on '''File''' then '''Open...''' <br/> |
+ | Locate the scripts you downloaded and open Start_VPNscript.<br/> | ||
+ | 2. To change the name of the VPN connection:<br/> | ||
+ | Locate BTGuard VPN and replace it with MYVPN (or whatever name you've given it). Make sure to keep the " ".<br/> | ||
+ | 3. To have the script manage a different program, locate uTorrent and replace it with the name of the program you wish to see closed when the VPN connection drops. <br/> | ||
<br/> | <br/> | ||
</p> | </p> | ||
Line 137: | Line 147: | ||
<div class="right"> | <div class="right"> | ||
<p> | <p> | ||
− | + | 4. Open the second script Stop_VPNscript.<br/> | |
+ | 5. To change the name of the VPN connection:<br/> | ||
+ | Locate BTGuard VPN and replace it with MYVPN (or whatever name you've given it). Make sure to keep the " ".<br/> | ||
+ | 6. To have the script manage a different program, locate uTorrent and replace it with the name of the program you wish to see closed when the VPN connection drops. <br/> | ||
<br/> | <br/> | ||
</p> | </p> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 17:52, 23 June 2013
How To use the VPN Script for Mac
This script will monitor the status of your VPN connection and will automatically try to reconnect you to the VPN if you're disconnected.
This will also allow you to select a program (utorrent in this case) that will automatically be shutdown when disconnected and reopened when reconnected.
2. Make sure Show Script menu in menu bar is checked.
THE FOLLOWING SCRIPTS WILL ONLY WORK IF YOU FOLLOWED THESE INSTRUCTIONS TO THE LETTER FOR THE PPTP METHOD AND YOUR VPN CONNECTION IS PROPERLY NAMED: BTGuard VPN
3. To make things easier, we have created some pre-configured scripts for some torrent clients.
Please download the appropriate script depending on the torrent client you use:
- [http uTorrent]
- [http Vuze]
- [http qBittorrent]
- [http Deluge]
- [http Transmission]
4. Click on the AppleScript Editor icon in the menu bar and click on Open Scripts Folder to open the Scripts folder where we'll put the scripts.
5. Unzip the downloaded scripts and move the whole content to the Scripts folder you just opened.
The folder is located at
Macintosh HD > Users > your username > Library > Scripts
6. Click on the AppleScript Editor icon in the menu bar and click on Start_VPNscript
Setup Complete!
There are some limitations to this script. Once it's started, you CANNOT disconnect from the VPN or close your torrent program as the script will automatically reconnect to the VPN and launch the program. The only way to stop the script is by restarting the computer.
How To Edit the scripts
The following steps are only required if you did not name your VPN connection BTGuard VPN or if your favorite torrent client isn't listed above.
1. To edit the script files. Open the AppleScript Editor, click on File then Open...
Locate the scripts you downloaded and open Start_VPNscript.
2. To change the name of the VPN connection:
Locate BTGuard VPN and replace it with MYVPN (or whatever name you've given it). Make sure to keep the " ".
3. To have the script manage a different program, locate uTorrent and replace it with the name of the program you wish to see closed when the VPN connection drops.
4. Open the second script Stop_VPNscript.
5. To change the name of the VPN connection:
Locate BTGuard VPN and replace it with MYVPN (or whatever name you've given it). Make sure to keep the " ".
6. To have the script manage a different program, locate uTorrent and replace it with the name of the program you wish to see closed when the VPN connection drops.