parekh Posted April 16, 2013 Share Posted April 16, 2013 Thank you for this excellent workflow! I would just like to report one small bug: what is copied to the clipboard is not simply the shortened url, but it is the shortened url followed by a line break. Is there any way to fix this problem? Link to comment
roccitman Posted April 17, 2013 Share Posted April 17, 2013 (edited) Thank you. I just changed the API Key and the Login so I see my shortened URLs at bit.y Nice tweak. Did you just change this section in the script filter? Just change the bolded pieces? 'bit.ly' : {'api_url':'https://api-ssl.bitly.com/v3/shorten?format=json&login=hzlzh&apiKey=R_e8bcc43adaa5f818cc5d8a544a17d27d&longUrl=','title':'bit.ly','des':'http://bit.ly/'}, UPDATE: Yeah, that was it. Works now. Awesome. Edited April 17, 2013 by roccitman Link to comment
roccitman Posted April 17, 2013 Share Posted April 17, 2013 That's right, I'll find some way to short an URL directly for some users, for now, you can edit some of the workflow's code to pass that step of choosing services maybe. Yeah, I was trying to think of a way to reorder them at least. I think that's all we'd have to do. Link to comment
hzlzh Posted April 17, 2013 Author Share Posted April 17, 2013 Yeah, I was trying to think of a way to reorder them at least. I think that's all we'd have to do. Yes, re-order the API list is a nice way to speed up the action when shorting a long URL with this workflow. cheers~ Link to comment
hzlzh Posted April 17, 2013 Author Share Posted April 17, 2013 Thank you for this excellent workflow! I would just like to report one small bug: what is copied to the clipboard is not simply the shortened url, but it is the shortened url followed by a line break. Is there any way to fix this problem? Link which contains some space like `http://google.com/xxx yyy/` can be changed by Firefox/Chrome into link like this `http://google.com/xxx%20yyy` when you copy it from the Firefox/Chrome location bar. So just paste the URL in to Firefox/Chrome once before shorting it. Link to comment
roccitman Posted April 17, 2013 Share Posted April 17, 2013 Yes, re-order the API list is a nice way to speed up the action when shorting a long URL with this workflow. cheers~ Hmm, doesn't seem to do it. They're not appearing in the same order as listed in the script filter anyway: http://d.pr/i/JDt9 Link to comment
leefur Posted April 17, 2013 Share Posted April 17, 2013 That's right, I'll find some way to short an URL directly for some users, for now, you can edit some of the workflow's code to pass that step of choosing services maybe. Excellent. I looked but I'm way out of my depth here. I'm a designer, not a dev. I'm grateful for your work and I'll patiently wait. Thanks! Link to comment
hzlzh Posted April 18, 2013 Author Share Posted April 18, 2013 Hmm, doesn't seem to do it. They're not appearing in the same order as listed in the script filter anyway: http://d.pr/i/JDt9 Got it, I just update this workflow to new version v1.2 to let you change the services sort. Check out the new version here: https://github.com/hzlzh/Alfred-Workflows/raw/master/Downloads/Shorten-URL.alfredworkflow the screenshot: ===== cc @leefur Excellent. I looked but I'm way out of my depth here. I'm a designer, not a dev. I'm grateful for your work and I'll patiently wait. Thanks! check above, Link to comment
leefur Posted April 18, 2013 Share Posted April 18, 2013 Ooh, neat. Now if only I could narrow that list to just one thing, and then skip the whole selection step… (Do people use different shorteners?) Link to comment
parekh Posted April 20, 2013 Share Posted April 20, 2013 Link which contains some space like `http://google.com/xxx yyy/` can be changed by Firefox/Chrome into link like this `http://google.com/xxx%20yyy` when you copy it from the Firefox/Chrome location bar. So just paste the URL in to Firefox/Chrome once before shorting it. Sorry, there seems to be some misunderstanding. I'm talking about the shortened url. The expected output is: "http://j.mp/11vfsSl" But the actual output is: "http://j.mp/11vfsSl " (there is a line break which I did not expect) Am I making sense? Link to comment
hzlzh Posted April 20, 2013 Author Share Posted April 20, 2013 (edited) Sorry, there seems to be some misunderstanding. I'm talking about the shortened url. The expected output is: "http://j.mp/11vfsSl" But the actual output is: "http://j.mp/11vfsSl " (there is a line break which I did not expect) Am I making sense? Thanks for your notice, I got your idea this time, fixed it and release the Short-URL v1.3, please have a check from the link below, re-install it. https://github.com/hzlzh/Alfred-Workflows Edited April 20, 2013 by hzlzh parekh 1 Link to comment
parekh Posted April 20, 2013 Share Posted April 20, 2013 Thanks for your notice, I got your idea this time, fixed it and release the Short-URL v1.3, please have a check from the link below, re-install it. https://github.com/hzlzh/Alfred-Workflows Thank you so much! It works perfectly now. Link to comment
chroniX Posted April 22, 2013 Share Posted April 22, 2013 This workflow is amazing, thanks for the awesome work! Link to comment
Vatican Posted April 23, 2013 Share Posted April 23, 2013 Great workflow! It works really well, and I use it everyday. Link to comment
galbutnotgirl Posted May 12, 2013 Share Posted May 12, 2013 Love it! But, a request… is there any way to make it so that hitting the hotkey with a URL selected will pass the URL straight through to one service? (of my choosing in some sort of set up?) I just want to use goo.gl and be done with it, I don't need a selection step. And I imagine most people probably have one service they prefer and use generally. Thanks! That's right, I'll find some way to short an URL directly for some users, for now, you can edit some of the workflow's code to pass that step of choosing services maybe. I would love this functionality. I've been able to cut things down to only one API, but cannot figure out what to change to make it go straight to shortened URL (gave up after an hour of trying). I like that if nothing is highlighted it would bring up a pop up to enter text. So maybe if there is a URL highlighted it shortens it, and otherwise it will pop up the box to enter the text? Either way - loving this! Link to comment
alanwill Posted May 20, 2013 Share Posted May 20, 2013 Yes you can, just replace the API KEY below with your own. Can you provide some insight into how to implement the API key for Goo.gl? I've changed the Google entry as follows: api = { 0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url?key=<my_actual_api_key>','title':'goo.gl','des':'http://goo.gl/'}, ... and I still get a shortened URL but it doesn't show up in my account so I don't think the association is being made. Any idea what I'm doing wrong? Thanks, _alan_ Link to comment
adrianfurlan Posted June 15, 2013 Share Posted June 15, 2013 (edited) Su.pr and Brb.bz are two of the best link shorteners on the market. (Along with bit.ly and goo.gl, which you already have.) It would be pretty cool to have those options as well. Another request I could make is when using bit.ly if there could be a way to add notes (#tags) to the link while shortening (saving) it? Say I'd like to save (and shorten) a link to bit.ly using the workflow I could add some tags to make that link easily searchable when logged into the bit.ly website. I don't know if it's possible, but it could save me a bit of time of entering the tags manually. All in all this is one of the workflows I use the most on a daily basis. Keep up the good work and thanks in advance!! Edited June 15, 2013 by adrianfurlan Link to comment
hzlzh Posted June 16, 2013 Author Share Posted June 16, 2013 I would love this functionality. I've been able to cut things down to only one API, but cannot figure out what to change to make it go straight to shortened URL (gave up after an hour of trying). I like that if nothing is highlighted it would bring up a pop up to enter text. So maybe if there is a URL highlighted it shortens it, and otherwise it will pop up the box to enter the text? Either way - loving this! It's really need by some users to shorten URL just use only one service (e.g. goo.gl), so I thought to make another single workflow will solve this. I'll have a try. Link to comment
hzlzh Posted June 16, 2013 Author Share Posted June 16, 2013 Can you provide some insight into how to implement the API key for Goo.gl? I've changed the Google entry as follows: api = { 0 : {'api_url':'https://www.googleapis.com/urlshortener/v1/url?key=<my_actual_api_key>','title':'goo.gl','des':'http://goo.gl/'}, ... and I still get a shortened URL but it doesn't show up in my account so I don't think the association is being made. Any idea what I'm doing wrong? Thanks, _alan_ You can get an API key follow this post below: https://developers.google.com/console/help/#generatingdevkeys for more info, check goo.gl's docs: https://developers.google.com/url-shortener/v1/getting_started#AboutAuthorization Link to comment
hzlzh Posted June 16, 2013 Author Share Posted June 16, 2013 Su.pr and Brb.bz are two of the best link shorteners on the market. (Along with bit.ly and goo.gl, which you already have.) It would be pretty cool to have those options as well. Another request I could make is when using bit.ly if there could be a way to add notes (#tags) to the link while shortening (saving) it? Say I'd like to save (and shorten) a link to bit.ly using the workflow I could add some tags to make that link easily searchable when logged into the bit.ly website. I don't know if it's possible, but it could save me a bit of time of entering the tags manually. All in all this is one of the workflows I use the most on a daily basis. Keep up the good work and thanks in advance!! Thx, I've checked the two URL services Su.pr and Brb.bz. you can change some code in this workflow so that it can work for su.pr, so I made this for you: Shorten URL(with su.pr).alfredworkflow ---- since Brb.bz need an API key, you need to get one below: http://www.brb.bz/page/developer Link to comment
firesofmay Posted July 14, 2013 Share Posted July 14, 2013 Excellent workflow. Very useful. Thanks for sharing. Link to comment
nitingoyal Posted August 30, 2013 Share Posted August 30, 2013 It's really need by some users to shorten URL just use only one service (e.g. goo.gl), so I thought to make another single workflow will solve this. I'll have a try. hzizh, any update on the workflow for one service only? Link to comment
GTBurns Posted October 25, 2013 Share Posted October 25, 2013 I love this workflow, use it numerous times each and every day. Problem has cropped up, not sure if it's a Mavericks thing (I doubt it) but some of the services are throwing up blanks now ( e.g. You get the notification but it's blank and URL hasn't been shortened or copied to clipboard).Hope it can be resolved. It may just be that the URLs for certain services have changed? Cheers, Gary Link to comment
GTBurns Posted November 5, 2013 Share Posted November 5, 2013 (edited) Yep, definitely not Mavericks.Hzizh, any ideas? Is anyone else having the same problems? Edited November 5, 2013 by GTBurns Link to comment
Patrick Posted December 3, 2013 Share Posted December 3, 2013 On my Mac, bit.ly and j.mp are not working. (They're the same company, so it's not surprising that the results are the same.) Like Gary mentioned above, there is a notification that the address was shortened and copied to the clipboard, but nothing is actually put on the clipboard. All the others (j.mp, v.gd, etc.) are working fine. I'm using OS X 10.8.5. 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