You're getting the clipboard seed. You then set the clipboard -- which changes the seed. Your pause doesn't pause because the values aren't equal, and the clipboard is instantly overwritten with the value of local_URL.
Remember that the clipboard seed changes when you set the clipboard to something different, not when you paste -- you can't use it as an "I have pasted that value, now move on" step (which is what I assume you are trying to do).