So my scenario is that I've copied a http link that I want to stream with vlc player to the clipboard. I would like to write a simple script that starts playing the file at the path on the clipboard. I've already tried
pbpaste | VLC -
pbpaste outputs the contents of the clipboard to stdout, so I was hoping VLC would then pick that up, read the path, and then play it, but apparently it expects an actual stream when you pipe things to it, not a filepath. I've tried something similar on windows that failed so I don't think this is OS-specific
Any thoughts?
Thanks,
sh4d0w