• 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: convert unicode text to code point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert unicode text to code point


  • Subject: Re: convert unicode text to code point
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 16 Jan 2006 11:24:10 -0500

On 1/16/06, has <email@hidden> wrote:
> do shell script "xxd -p < " & quoted form of POSIX path of tempFile -- a UTF16-encoded file [1]
>
> [1] Yes, having to write temp files just to feed stdin sucks. Feel free to file a feature request on the 'do shell script' command, asking for an optional 'with data' parameter to pass stdin data directly. It's long overdue.

Not to take anything away from your perfectly valid point, but
wouldn't a here-document be better than a temp file, at least for
smallish-sized data?  e.g.

do shell script "xxd -p <<'EOF'" & return & data goes here & return & "EOF"

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: convert unicode text to code point
  • Next by Date: Re: convert unicode text to code point
  • Previous by thread: Re: convert unicode text to code point
  • Next by thread: Re: convert unicode text to code point
  • Index(es):
    • Date
    • Thread