Well, if you can send me a sample .webloc file, I can see if I can't put together the script for you. Back in school I played with AppleScript on occasion, nothing huge, but a little, at one point I took 2 separate scripts, one that would detect my cell phone's bluetooth and automatically sync it, and another that would lock my computer just by running it, made it so that when my cell was near it would sync, when my cell was far (out of range) it would lock the laptop.
So,
stuart.hollisREMOVETHISIFYOUWANTTOEMAILME@gmail.com and ill see if I can convert it.