• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hex > Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Hex > Text
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: AFP secure login using AppleScript?
  • Next by Date: Re: Hex > Text
  • Previous by thread: Re: Hex > Text
  • Next by thread: Re: Hex > Text
  • Index(es):
    • Date
    • Thread