Not if you don't construct this kind of path yourself (via scripting)...
Where's the problem that it lands in the clipboard? You can just store (ok, only text) what's inside the clipboard before invoking the command id and restore it back after having assigned the path to the variable...
One of my scripts helped you out? Please donate viaPaypal
If you are just using the script on your own config, you could enable Clip History, then you can restore prev clipboard with single command, no matter what it was image/file/text.
@Don: I think having the UNC path available as a custom property would be useful, since constructing it via scripting takes a bit of effort.