Re: Hex > Text
Re: Hex > Text
- Subject: Re: Hex > Text
- From: Rob Jorgensen <email@hidden>
- Date: Wed, 17 Sep 2003 15:04:03 -0400
At 7:32 PM +0200 9/17/03, julifos wrote:
This needs and adjustment (I use here a c string, but data TEXT is cool):
on hextoString(t)
set z to ""
repeat with i from 1 to t's length by 252
try
set z to z & (run script "+data cstr" & ,
text from character i of t to character (i + 251) of t &
"00; as string")
on error
set z to z & (run script "+data cstr" & ,
text from character i of t to character -1 of t & "00; as
string")
end try
end repeat
z
end hextoString
Yup, this appears to work quite nicely too. Thanks to everyone who
has offered code. Now I need to get busy cataloging and evaluating
all of the great suggestions so I can put some of them to use. :-)
Thanks JJ!
-- Rob
_______________________________________________
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.