There is a way to make that work; the broader term is making your Macbook be “location aware,” and there are several programs that will do that for you.
What they all do – a bit differently among them all – is monitor the location that you set in your Network Preferences (selected under the Apple Menu) and change other settings on your MacBook in relation to the network you’re using.
So if you change your location setting (or if it changes automatically if you have it set to “Automatic”), then you can have the Location program change other things for you, like your default printer, start a program like a word processor, change a backup system, change Mail settings, etc.
This can work well if you use a laptop often between home and work, so you can have printers and other things change automatically when your location changes.
There are three programs available now, one free and two that are $20-30 to use. (There are a few others out there, but they are fairly out of date).
MarcoPolo – Context-aware computing for Mac OS X is free and open source, but has a few problems working with Snow Leopard; there is a patched version that works with Snow Leopard, though. MarcoPolo is the most versatile among the three, but also the most complex to set up.
There are two other “paid” programs that work. NetworkLocation – Manage settings on your Mac is $29 and works with Snow Leopard. But I liked Locations the best. It’s a Preference Pane and is easy to use and works well. Download it and it will install in your Preference Panes and will also be available from your menu bar. It has a seven day demo period before you need to pay $19 for it.