stevenash13 Posted March 22, 2015 Share Posted March 22, 2015 (edited) Hi, I'm getting started in creating Workflows. What I basically want to do is somehow get the URL of a Youtube Link at a specific time. In youtube you can do that by rightclicking on the video and "Get Video URL at current time". Does anybody have a nice solution for the Youtube URL? For all those interested why I actually wanna do this: I listen to a lot of podcasts, and I often find myself liking a particular song. So what I wanna do is create a workflow, which saves the time of the current Youtube Podcasts into Evernote with the name of that podcast. Edited March 23, 2015 by stevenash13 Link to comment
deanishe Posted March 23, 2015 Share Posted March 23, 2015 (edited) You can get the URL of the active browser tab easily enough with AppleScript, but you'll almost certainly have to append the time manually. There is no way you can access the contents of a browser tab from Alfred (or anywhere else). Browsers just aren't built that way. The only way to get at the contents of a browser tab is from code that runs in the browser, i.e. a browser extension or userscript. Even then, I'd be surprised if you can get at the video progress because that's likely hidden away inside a plugin (e.g. Flash Player), which you can't interrogate so easily. Edited March 23, 2015 by deanishe Link to comment
stevenash13 Posted March 23, 2015 Author Share Posted March 23, 2015 I actually figured it out thanks to the code of the Workflow of DangerPhil. http://www.alfredforum.com/topic/4216-youtube-control/ Thanks a lot for that! I'm not sure whether I'm supposed to upload a workflow taken from another user. But if anyone is interested in a workflow as quoted above let me know. Link to comment
deanishe Posted March 23, 2015 Share Posted March 23, 2015 (edited) Haha! I stand corrected. Good find. Regarding uploading other users' workflows: If you just add a feature to someone's workflow, the usual (and best) thing to do is the ask the author to add your additions to the original workflow. That way, everyone benefits. If that's not possible or reasonable, the licensing terms of the original workflow apply. If there are no licensing terms (as in this case), you should probably ask DangerPhil. Again, if that's not possible, most authors generally don't mind you sharing an altered version of their workflows as long as you make clear which is their work and which is yours: You probably wouldn't like someone claiming credit for all your hard work, and you would probably equally dislike receiving complaints/support requests for something you didn't write… Edited March 23, 2015 by deanishe Link to comment
Toffy Posted November 22, 2022 Share Posted November 22, 2022 On 3/23/2015 at 9:16 PM, stevenash13 said: I actually figured it out Could you share your workflow? I looked at the Youtube control workflow but couldn't figure out how to adapt it to get the current timestamp... 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