Tuzi Posted March 5, 2016 Posted March 5, 2016 Hello,I am not sure is it right to post a simple request here. because I've known nothing about coding and I have nobody around me to get help. I wish to have a workflow that permits me to get url from the clipboard and send to a specific video player? I've tried a lot similar workflows in the forum and tried to edit the scripts, but i failed. The video player called "Keyi Video", which allows me to watch online video without using Flash. there is it's link on Mac App Store https://itunes.apple.com/cn/app/ke-yi-shi-pin/id887162789?mt=12. I think it would be a simple workflow, but i just don't know how to realise it. I really appreciate your help
deanishe Posted March 5, 2016 Posted March 5, 2016 In your workflow, add a Hotkey and select OS X Clipboard contents for the Argument. Connect this to a Run Script action. Set Language to /bin/bash and put the following in the Script box: open -a "Keyi Video" "{query}" It's possible you might need open -a "可意视频" "{query}" instead.
Tuzi Posted March 5, 2016 Author Posted March 5, 2016 In your workflow, add a Hotkey and select OS X Clipboard contents for the Argument. Connect this to a Run Script action. Set Language to /bin/bash and put the following in the Script box: open -a "Keyi Video" "{query}" It's possible you might need open -a "可意视频" "{query}" instead. Thanks a lot. I've follow your instruction. but it seems that there is a little problem. The "可意视频” launched successfully, but the url i've copied didn't opened in it, instead, it was opened in my default browser again. here are the screenshots of my workflow.
deanishe Posted March 5, 2016 Posted March 5, 2016 I'm afraid I don't know, then. That's the standard way of opening a URL in a specific application. I don't have the app to play with, so I don't know about any app-specific way.
Tuzi Posted March 5, 2016 Author Posted March 5, 2016 I'm afraid I don't know, then. That's the standard way of opening a URL in a specific application. I don't have the app to play with, so I don't know about any app-specific way. ok, it's still very kind of you. thanks for your help.
homever Posted March 24, 2016 Posted March 24, 2016 ok, it's still very kind of you. thanks for your help. Hey, Other than workflows, there're quite a few command line tools that can help. Try ``brew install mpv``. I am sure you know Chinese, so take a look at here for basics. MPV is a great open-source player for playing online videos, and you may have ``you-get`` installed for the best experience as it supports most Chinese online video websites (https://you-get.org). With mpv & you-get, you can trash that "可意视频".
deanishe Posted March 29, 2016 Posted March 29, 2016 Seconded. mpv is awesome. FWIW, it comes with youtube-dl included, so you probably don't need you-get to stream videos.
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