@pauljacobson did you see my previous post? I believe the workflow I uploaded does what you want, without a snippet or even a shell command.
I agree that depending on what you're copying to the clipboard (is it just a few words or entire walls of text?), it may be better to use something else to store the variables that are in the text.