If your objective is simply to have an action to shorten URLs in QS, Dennis, it might be simpler to create one using AppleScript and save it in ~/Library/Application Support/Quicksilver/Actions. I have the following code saved there as Shorten URL.scpt. I just get any URL into the first pane and select Shorten URL as the action in the second pane. The resulting short URL then appears in QS's first pane so that I can do other things with it.
*using terms from* *application* "Quicksilver" *on* *process text* theURL *set* shortURL *to* *do shell script* "curl -s https://www.googleapis.com/urlshortener/v1/url -H 'Content-Type: application/json' -d \"{\\\"longUrl\\\": \\\"" & theURL & "\\\"}\" | awk '/\"id\":/{print substr($2, 2, length($2)-3)}'" *return* shortURL *end* *process text* *end* *using terms from* On Thursday, September 27, 2012 11:21:14 AM UTC-4, Dennis wrote: > > Thanks, that worked - I used NSStringPboardType from the picture (not > NSFilenamesPBoardType in your text) and QS shows the service as a text > action. When it runs, I get no error, but the result doesn't display or > show up on the clipboard. I think Terpstra developed this for LaunchBar, > so maybe the interaction is a bit different. Do you have a suggestion for > how to get the results to the clipboard? Here's the service, if it's > helpful https://www.dropbox.com/sh/2ofsrjba1fj15km/1HFNCnA6NT. 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.
