Re: Routines for review: Hex <-> String
Re: Routines for review: Hex <-> String
- Subject: Re: Routines for review: Hex <-> String
- From: Paul Skinner <email@hidden>
- Date: Fri, 17 Jan 2003 13:10:00 -0500
How about...
stringtoHex("hello world")
-->{"68", "65", "6c", "6c", "6f", "20", "77", "6f", "72", "6c", "64"}
on stringtoHex(s)
return words 2 thru ((length of s) + 1) of (do shell script "echo " &
s & " | hexdump -C")
end stringtoHex
--
Paul Skinner
What does vanilla mean now?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.