• 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: 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.

References: 
 >Re: Hex > Text (From: julifos <email@hidden>)

  • Prev by Date: Re: Hex > Text
  • Next by Date: grabbing and decoding resources (was: Hex > Text)
  • Previous by thread: Re: Hex > Text
  • Next by thread: Re: Hex > Text
  • Index(es):
    • Date
    • Thread