This was a standard script from Apple, I take it? I recommend going back to your Snow Leopard 10.6 machine, or find a machine with 10.6 running on it, and copy the script from that machine to your Lion machine.
I don't know why Apple would have removed the script.