Don't know about Photoshop, but I will say its friggen hard to get it right in PSP. I'll see if I can get the trial or something for PS and give it a spin.
From what I remember, theres some effect that you can make a dotted line and then click and hold shift and click again where you want the line to end. But, don't take my word on that.