Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

URLencode in AppleScript

Does anyone know if there is a URLencode function available in AppleScript?

MacBook, Mac OS X (10.5.2)

Posted on Apr 26, 2009 5:44 AM

Reply
Question marked as Best reply

Posted on Apr 26, 2009 8:43 AM

There isn't one in AppleScript per se, but you can call a Python routine that will do it (refer to the pydoc manual page for more information):

do shell script "/usr/bin/python -c 'import sys, urllib; print urllib.quote(sys.argv[1])' " & quoted form of TheTextToEncode
4 replies

URLencode in AppleScript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.