• 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: Routines for review: Hex <-> String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Routines for review: Hex <-> String


  • Subject: Re: Routines for review: Hex <-> String
  • From: Paul Skinner <email@hidden>
  • Date: Fri, 17 Jan 2003 13:10:00 -0500

How about...

stringtoHex("hello world")
-->{"68", "65", "6c", "6c", "6f", "20", "77", "6f", "72", "6c", "64"}

on stringtoHex(s)
return words 2 thru ((length of s) + 1) of (do shell script "echo " & s & " | hexdump -C")
end stringtoHex

--
Paul Skinner

What does vanilla mean now?
_______________________________________________
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: Routines for review: Hex <-> String (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Why does the Script Editor Service do this?
  • Next by Date: Re: Still cannot record anything in Script Editor
  • Previous by thread: Re: Routines for review: Hex <-> String
  • Next by thread: Re: Routines for review: Hex <-> String
  • Index(es):
    • Date
    • Thread