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

Re: Unicode Codepoints


  • Subject: Re: Unicode Codepoints
  • From: has <email@hidden>
  • Date: Fri, 18 Mar 2005 15:03:56 +0000

Rob Stott wrote:

I want to be able to add a character
to a TextEdit document, but I want to be able to specify the character
by it's unicode codepoint.

AppleMods' Unicode library <http://applemods.sourceforge.net/mods/Data/Unicode.php > has various commands for this sort of thing, e.g.:


-- (library loading code omitted for clarity)

tell application "TextEdit"
    set character 1 of document 1 to _Unicode's uChar(650)
end tell

Not super-fast (but few things in AS are), and some commands may not be 100% reliable due to bugs in AS's unicode support, but it ought to get the job done here.

If you've not used AppleMods' libraries before, you'll need to download and install AppleMods' Loader system first <http://applemods.sourceforge.net/getstarted.html>. Run the Loader installer, then download and add the Unicode and FormatStringParser libraries to the ASLibraries folder. You can use the LoaderWizard applet to generate the library loading code to paste at the top of your script.

HTH

has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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: Round a number towards zero!
  • Next by Date: Re: Unicode Codepoints
  • Previous by thread: Re: Unicode Codepoints
  • Next by thread: Re: Unicode Codepoints
  • Index(es):
    • Date
    • Thread