Re: Routines for review: Hex <-> String
Re: Routines for review: Hex <-> String
- Subject: Re: Routines for review: Hex <-> String
- From: Emmanuel <email@hidden>
- Date: Fri, 17 Jan 2003 14:58:49 +0100
At 1:18 PM +0100 17/01/03, julifos wrote:
Hi all!
Perhaps these routines already exists, but I did not find them, so...
I'd like to know if this works in other computer different than the mine (AS
1.9.1, OS 10.2.3)
1. Hexa -> String
on hextoString(t)
set z to z & (run script "<<data cstr" & t's characters i thru
(i + 251) & "00>> as string")
We have been making a very similar (vanilla) script which uses ...
"pstr" instead of your "cstr"!
Ours has been available since a rather long time now at:
<
http://www.satimage-software.com/downloads/VanillaHexToString.sit.hqx>
and it looks like it works on all systems that I know. (No report at
all about it).
2. String -> Hexa
We did not want to use the "return excerpt from error message"
method, which is rather fragile I think. Thus, we were not able to
produce any simple "vanilla" method. We use:
display (theChunk as Pascal string)
where "display" is that command which makes anything into a string
and which belongs to Smile.
Emmanuel
_______________________________________________
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.