Re: Routines for review: Hex <-> String
Re: Routines for review: Hex <-> String
- Subject: Re: Routines for review: Hex <-> String
- From: Axel Luttgens <email@hidden>
- Date: Mon, 20 Jan 2003 10:17:58 +0100
Philip Aker wrote:
On Sunday, January 19, 2003, at 08:49 AM, Paul Skinner wrote:
StringToHex still has limits. It can't deal with >32k of text.
Somewhere in the execution of the do shell script. So if you need to
hex your logs you're going to have to tweek it.
Way cool guys. Here's my $0.02:
set str to "Best of all possible worlds."
on str2hex(theString)
do shell script "echo -n " & theString & " | hexdump -v -e '1/1
\"x\"'"
end str2hex
str2hex(str)
Wicked fast OMM.
Philip
Damn! I completely forgot the -n option for 'echo' while posting my
hexdump-based converter at the end of December; but I clearly remember
having been very, very disappointed to have to resort to the 'text 1
through -3' part.
Nous sommes vraiment bien peu de choses... ;-)
Anyway, thanks for the reminder!
Axel
_______________________________________________
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.