Question marked as Best reply User profile for user: red_menace red_menace User level: Level 6 17,030 points Apr 26, 2009 8:43 AM in response to thompsonsol 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 Show more Less Reply Link
User profile for user: thompsonsol thompsonsol Author User level: Level 1 5 points Apr 26, 2009 2:43 PM in response to red_menace Thanks. I'll give it a try. Do you need Python to be installed or does it come standard? Show more Less Reply Link
User profile for user: red_menace red_menace User level: Level 6 17,030 points Apr 26, 2009 3:06 PM in response to thompsonsol Several scripting languages are already installed, including Python. Show more Less Reply Link
User profile for user: TomkOx TomkOx User level: Level 1 5 points Jul 10, 2009 1:18 PM in response to thompsonsol Another way (via PHP): AppleScript: *set input to "Text or URL to encode via PHP!"* *set textencoded to do shell script "php -r 'echo trim(urlencode(" & "\"" & input & "" & "\"));'"* Show more Less Reply Link