TinyURL Service 0.2
Posted 05 April 2007 - 01:57 PM
So, evidently this little service tool has gotten some posting coverage, in TUAW and a few other places. Yipe! So, here's a quick second release.
I've added a new 'Shrink URL to Clipboard' service as requested, so that you can still shrink a URL in a non-editable text-field; it just puts the result on the clipboard instead of replacing the original.
http://www.riverdark...TinyURL-src.zip (source code)
I've repackaged it as a simple drag-and-drop as was suggested; you can drop it into ~/Library/Services to have it just for one user, or into /Library/Services to have it system-wide. To uninstall the old version, just delete /System/Library/Services/TinyURL.service; a restart /is/ still required, but that's a limitation of Apple's system-service stuff... I can't really get around it.
Posted 08 April 2007 - 10:29 AM
However, I have a comment and a problem:
1. On my System (10.4.9 on MacBook, Germany) there is no folder: /System/Library/Services. This is the same if I run the system in German or English.
In my Libary there is a folder "Services" in "Documentation" (i.e.: /System/Library/Documentation/Services), where I put TinyURL.service, and apparently it works fine.
2. I shrunk this link, which I have bookmarked:
and got this result:
which, when put in Safari, brings this answer from the server:
Both key/value pairs and simple query used!
So, does Tiny URL not work for database queries, or what did I wrong?
The problem might be related to special characters encoded in the URL (Ägypten = German Umlaut: Ä), I tried with Afghanistan, and it worked.
Posted 08 April 2007 - 12:43 PM
I'll change the escaping logic later and do another release, but I'm about to head out for Easter dinner (lunch, whatever), so I'll toy with that later.
Posted 09 April 2007 - 08:48 PM
The 'Shrink URL to Clipboard' works all the time in Mail.app, but you need to fire that one off, pause a moment, then paste. Annoying. If I combined the two (wrote to clipboard /and/ did a services replace), it would work in Mail.app all the time (but at the cost of overwriting your current clipboard contents).
And cool, on the Applescript! I basically did this one because I had the 'shrinkURL' method already written for another project, and a friend asked for it as a service. I really did not expect it to get linked all over the place like this, but hey, if people find it useful, I'm glad.
Posted 18 April 2007 - 05:31 PM
Wonderful service - works great! Suggestion: update the .txt file, it describes TinyURL as a file, but it's actually physically a directory, which can be confusing if you're using Terminal to do the install.
Posted 18 April 2007 - 05:35 PM
Posted 22 April 2007 - 11:22 AM
would be cool, as a Firefox add-on, but that would have left other browsers out in the cold.
I lucked out and noticed your creation in a write up of the add-on.
Testing <http://tinyurl.com/2kytck> (Ah ha! Don't highlight the brackets!)
My installer of the .3 version asked me for an application.
So instead, I dragged the basic file to the house as discussed above and restarted.
There they were. "Shrink URL ..." I anticipate that posting shortened urls to Usenet will be much easier to do.
Posted 09 May 2007 - 06:41 PM
(Sorry to take so long to get back to you on this). Sure, that would be sufficiently clear.
Thanks again for this great tool.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users