VPN Tracker 5 has a feature that lets you automatically run an arbitrary shell script or AppleScript when you connect or disconnect a VPN connection. I have a client who has a VPN and an internal Jabber server. Before I disconnect from their VPN, I want to tell Adium to disconnect from the Jabber server. To do that, do this:
- In VPN Tracker, select the VPN connection and choose the Actions tab
- Under VPN Shutdown Actions, choose Execute AppleScript.
- Save this script as a file somewhere:
tell application "Adium" to go offline account "michael@chat.example.com"
- Click Path and select the file
- Now you can click the Execute button to make sure it worked
This works with VPN Tracker version 5.2.2 and Adium version 1.2.5
0 comments:
Post a Comment