Hi, I'm trying to implement a URL shortener via QS. In particular, I've
created a - pretty simple - OSX service with Automator, exactly as
described here under "Update 2":
http://brettterpstra.com/a-system-service-for-to-url-shortening/. The
service is implemented via a Ruby shell script.
require 'open-uri'
require 'cgi'
input = STDIN.read
print open("http://is.gd/api.php?longurl=#{CGI.escape(input.strip)}").read
I don't have much experience with scripts, I don't know why Ruby was used -
presumably because the shortener function somehow relies on a Ruby library
to work.
The service works successfully if I select URL text and invoke it from the
OSX Services menu (I'm running 10.8.1). But I can't figure out how to get
it to work in QS. The service is saved in ~/Library/Services and it does
appear in the list of Actions in QS, albeit down near the end. However, it
does not appear in the list of Actions when I specify type Text. I tried
to create a trigger with Current Selection in the Pane 1 and the service in
Pane 2 (it is available for Pane 2 when setting up the trigger, though it
is not in regular QS processing). When I run the trigger, it says "Unknown
Clipboard Object."
Any suggestions? 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.