The "URL Escape Line / Selection" command in the HTML bundle uses Ruby.
I guess that means there probably isn't a sh command equivalent. I'll go ahead and write my command as a Python script (since I'm more comfortable with Python than Ruby, and the Python urllib module has a convenient quote function).
-- Daryl
On 4/24/07, Jacob Rus jacobolus@gmail.com wrote:
Daryl Spitzer wrote:
Is there a Mac OS X sh command for quoting text (to Internet-standard)? I'm writing a "Save to URL" command to complement the Twiki bundle "Open URL" command I described in a previous email, and I need to convert all the "special characters" in the entire document to the '%xx' quoted form so I can append it to a URL.
If there is no such thing, I'll write a Python script instead.
What's wrong with the "URL escape selection" command in the HTML bundle?
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate