Page 1 of 1

Using Growl to execute actions based on wireless network

Posted: Tue Feb 28, 2006 3:29 am
by Muriac
I've been looking for a solution to the following problem for a while:

I regularly use three different wireless networks, and each one is connected to a different ISP with a different outgoing mail server. Additionally, one of the networks requires that I launch Cisco's VPN Client and connect in order to gain internet access. I have to manually change Mail's outgoing server every time I switch networks, or it tries the wrong one first. I have to launch VPN Client manually, and I have to quit it manually if I don't want to see it complain about losing contact when I switch networks again.

None of this should require any of my input. I don't understand why a system for automating (at the very least) smtp server switching based on wireless network isn't integrated into OS X. However, it isn't, and so I've been looking for another solution.

HardwareGrowler does the first step. What needs to happen next is for the SSID to be passed on to a script that changes my outgoing mail server, or launches VPN, or whatever based on that SSID. Can any "display style" do things like email, etc.? If that's the case, then all I need to do is make one to do what I want.

How should I go about this?

Posted: Tue Feb 28, 2006 2:38 pm
by Diggory
Growl's not really an automation system - just notifications.

Perhaps you might find these useful:

http://homepage.mac.com/locationmanager/

http://www.macosxhints.com/article.php? ... 1#comments

Posted: Tue Feb 28, 2006 11:04 pm
by Muriac
Diggory wrote:Growl's not really an automation system - just notifications.

Perhaps you might find these useful:

http://homepage.mac.com/locationmanager/

http://www.macosxhints.com/article.php? ... 1#comments
Thanks for the link to Location X: I'm trying it out right now, and it seems to do what I want.