Re: convert unicode text to code point
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