Re: Encode URLs for posting help
Re: Encode URLs for posting help
- Subject: Re: Encode URLs for posting help
- From: Martin Orpen <email@hidden>
- Date: Fri, 01 Apr 2005 01:08:30 +0100
on 1/4/05 12:39 am, Shane Stanley at email@hidden wrote:
> On Thu, 31 Mar 2005 13:01:21 +0100, has wrote:
>
>> 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
>
> So is this [1] part of the script, or a mysterious has footnote reference? ;-)
>
> I ask because I get:
>
> --> File "<string>", line 1
> import sys, urllib; print
> urllib.quote(sys.argv[1])
> ^
> SyntaxError: invalid syntax
>
> and the ^ seems, on screen, to be pointing eerily close to the [1].
The script works fine here.
It should have 3 lines - I reckon that you might have four ;-)
Regards
--
Martin Orpen
_______________________________________________
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