This does the trick!
require 'open-uri'
require 'cgi'
input = STDIN.read
IO.popen('pbcopy', 'w').puts
open("http://is.gd/api.php?longurl=#{CGI.escape(input.strip)}").read
On Thursday, September 27, 2012 12:17:13 PM UTC-4, Dennis wrote:
>
> Yes, URL shortening via QS is my objective, I don't really care what the
> underlying method is (though Terpstra's is a bit more elegant, isn't it?)
>
> I may play with the Ruby script a bit. If I can fix it, I'll post the
> results. If not, I'm happy to have the apple script - THANKS
>
--
You received this message because you are subscribed to the Google Groups
"Quicksilver" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/blacktree-quicksilver?hl=en.