On 6/28/06 6:41 PM, "Michael Heth" <[EMAIL PROTECTED]> wrote:

> http://%74%6c%61%67%75%73%67%68%38%32.%63%61%66%65%32%34.%63%6f%6d/
> src/spam_input.asp?

Here is an AppleScript solution, which requires the Satimage scripting
addition, which is free:
<http://www.satimage.fr/software/en/downloads_osaxen.html>


property digits : "0123456789ABCDEF"
-- set s to the value of the string to convert, e.g.
set s to 
"http:%2f%2f%74%6c%61%67%75%73%67%68%38%32.%63%61%66%65%32%34.%63%6f%6d/"
repeat with i from 0 to 255
    set n to hex of me for i
    set str to "%" & n
    set s to change str into ASCII character i in s without case sensitive
end repeat
--do something with s
display dialog s

on hex for i
    -- convert to 2-digit hex
    set b to i mod 16
    set a to i div 16
    set theHex to character (a + 1) of digits & character (b + 1) of digits
    return theHex
end hex
-- 
<[EMAIL PROTECTED]>
Scripts for OE and Entourage:
<http://homepage.mac.com/allen_a_watson/AppleScripts_For_You>
Entourage questions: <http://www.entourage.mvps.org/>




-- 
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to