Re: Encode URLs for posting help
Re: Encode URLs for posting help
- Subject: Re: Encode URLs for posting help
- From: has <email@hidden>
- Date: Thu, 31 Mar 2005 13:01:21 +0100
Neil Lee wrote:
This worked, and is much, much faster and CPU friendly. The issue,
though, is that if any of the track's info has a single or double quote
in it, the script errors out.
This'll work:
on encodeURL(str)
return do shell script ("python -c \"import sys, urllib; print
urllib.quote(sys.argv[1]) \" " as Unicode text) & quoted form of str
end encodeURL
Christopher Biagini wrote:
Here's my personal favorite, from
<http://www.apple.com/applescript/scripteditor/12.html>.
Don't use that, it's rubbish code and will screw up all non-ASCII characters.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden