mickaphd Posted November 3, 2017 Share Posted November 3, 2017 Hi guys, Quick question: I would like to use Alfred to open a pasted url in another app: IINA (a VLC equivalent that I use to play youtube videos for example). I already created a small workflow with this request "iina://weblink?url={query}" which works perfectly fine when I paste the URL. But I would like to use automatically what I copied in the clipboard. I tried some stuffs like "iina://weblink?url={clipboard:0}" but it's not working. Any idea? Thanks a lot M Link to comment
deanishe Posted November 3, 2017 Share Posted November 3, 2017 (edited) You can use pbpaste to get the contents of the clipboard. Here's a workflow that does what you want. Edited November 5, 2017 by deanishe Fix links Link to comment
mickaphd Posted November 4, 2017 Author Share Posted November 4, 2017 Thank you deanishe. I was not able to download the workflow because of 404 error. Will try with the pbpaste command Link to comment
GuiB Posted November 4, 2017 Share Posted November 4, 2017 @mickaphd {clipboard} inside an "Open URL" object won't be expanded, but using the "Arg and Vars" it will. So you can just add a "Arg and Vars" object before the "Open URL" that would send the content of the clipboard and use "iina://weblink?url={query}" for the URL Here is a small workflow to show you this method: https://nofile.io/f/yKeyvqbN4zd/SendToIINA.alfredworkflow Best! Link to comment
deanishe Posted November 5, 2017 Share Posted November 5, 2017 On 04/11/2017 at 3:56 AM, mickaphd said: Thank you deanishe. I was not able to download the workflow because of 404 error. Will try with the pbpaste command Sorry about that. I fixed the link. Here it is again. Link to comment
mickaphd Posted November 7, 2017 Author Share Posted November 7, 2017 Thanks a lot guys, both of them works like a charm. Very good examples for me to learn now how I can do other workflows! Link to comment
dlandes Posted January 15, 2019 Share Posted January 15, 2019 On 11/6/2017 at 5:00 AM, deanishe said: Sorry about that. I fixed the link. Here it is again. Awesome! Thank you. I was looking for this. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now