• 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: Emmanuel <email@hidden>
  • Date: Fri, 17 Jan 2003 14:58:49 +0100

At 1:18 PM +0100 17/01/03, julifos wrote:
Hi all!

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>

and it looks like it works on all systems that I know. (No report at all about it).

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.

Emmanuel
_______________________________________________
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: Routines for review: Hex <-> String
      • From: Paul Skinner <email@hidden>
References: 
 >Routines for review: Hex <-> String (From: julifos <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: Routines for review: Hex <-> String
  • Next by thread: Re: Routines for review: Hex <-> String
  • Index(es):
    • Date
    • Thread