Re: Routines for review: Hex <-> String
Re: Routines for review: Hex <-> String
- Subject: Re: Routines for review: Hex <-> String
- From: julifos <email@hidden>
- Date: Fri, 17 Jan 2003 16:09:48 +0100
>
> 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>
I was pretty sure this routine already existed somewhere.
>
and it looks like it works on all systems that I know. (No report at
>
all about it).
And I'm pleased to know it is *universal*! ;-)
>
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.
This is a cool method if you're running Smile, but... Why do you think the
error msg "is rather fragile"? Error messages could change its syntax, but
did they until now?
JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.