• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Encode URLs for posting help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encode URLs for posting help


  • Subject: Re: Encode URLs for posting help
  • From: Martin Orpen <email@hidden>
  • Date: Fri, 01 Apr 2005 01:28:48 +0100

Title: Re: Encode URLs for posting help
on 1/4/05 1:17 am, Shane Stanley at email@hidden wrote:

> On Fri, 1 Apr 2005 01:08:30 +0100, Martin Orpen wrote:
>
>> The script works fine here.
>>
>> It should have 3 lines - I reckon that you might have four ;-)
>
> Done in by line-wrapping again. Thanks.


set
foo to encodeURL("display dialog \"You're welcome!\" buttons {\"•\"} giving up after 3")
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
open location "applescript://com.apple.scripteditor?action="">" & foo


:-)

--
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

References: 
 >Re: Encode URLs for posting help (From: "Shane Stanley" <email@hidden>)

  • Prev by Date: Re: Encode URLs for posting help
  • Previous by thread: Re: Encode URLs for posting help
  • Next by thread: app and scpt extensions
  • Index(es):
    • Date
    • Thread