Hey, makes me remind of Yet another printer script, the idea I had about providing the correct Windows printer depending on IP Address. Maybe the script can give you some ideas.