• 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: AS and Unicode characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and Unicode characters


  • Subject: Re: AS and Unicode characters
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 5 Jan 2007 16:13:30 -0500

Also, you could do this a lot simpler with a callout to Perl.  AS
seems to expect UTF-8 rather than UTF-16 back from "do shell script",
so this works pretty well:

on getUnicode(hexString)
	do shell script "perl -Mencoding=utf8 -e 'print chr(0x" & hexString & ")' "
end getUnicode

set the clipboard to getUnicode("1d12b")

Although I can't find that symbol in any font on my 10.3.9 system.
Instead, I get a boxed bass clef, which seems to be the "I know it's a
musical symbol but I don't have that particular one" glyph.

--
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: AS and Unicode characters
      • From: KOENIG Yvan <email@hidden>
    • Re: AS and Unicode characters
      • From: kai <email@hidden>
References: 
 >RE: AS and Unicode characters (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: [ANN] Boston AppleScript User Group News
  • Next by Date: Re: AS and Unicode characters
  • Previous by thread: RE: AS and Unicode characters
  • Next by thread: Re: AS and Unicode characters
  • Index(es):
    • Date
    • Thread