Re: Hex > Text
Re: Hex > Text
- Subject: Re: Hex > Text
- From: julifos <email@hidden>
- Date: Wed, 17 Sep 2003 19:32:13 +0200
>
on HexToString(sHex)
>
try
>
-- do script ("+data TEXT" & sHex & ";")
>
--
>
+event miscdosc; ("+data TEXT" & sHex & ";")
>
>
on error
>
run script ("+data TEXT" & sHex & ";")
>
>
end try
>
end HexToString
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
jj
_______________________________________________
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.