• 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 to plain text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode to plain text


  • Subject: Re: Unicode to plain text
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Sun, 22 Sep 2002 13:48:01 +1000

Date: Thu, 19 Sep 2002 23:05:18 +0100
From: John Delacour <email@hidden>
Subject: Re: Unicode to plain text

Does anyone know how to convert utxt to TEXT in plain AppleScript?

set plain_text to +class ktxt; of (unicodeString as record)

Unless, of course, it is _true_ Unicode text, in which case it will
not be coerced to a record, since it needs to contain no style info.
The style info is purely for the purposes of displaying in
NON-Unicode fonts in NON-Unicode environments.


This is from the AppleScript.component dictionary (version 1.9)

Class text : text with language and style information

Class international text : text that begins with a writing code
Plural form: international text

Class string : text in 8-bit Macintosh Roman format
Plural form: strings

Class styled text : text with font, size, and style information
Plural form: styled text

Class styled Clipboard text : clipboard text with font, size, and style information
Plural form: styled Clipboard text

Class Unicode text : text in the Unicode format (cannot be viewed without conversion)
Plural form: Unicode text

Class styled Unicode text : styled text in the Unicode format
Plural form: styled Unicode text


--
--
Malcolm Fitzgerald email@hidden
Database Manager http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.

References: 
 >Re: Unicode to plain text (From: "Arthur J. Knapp" <email@hidden>)

  • Prev by Date: Re: Script used in conjunction with OE Rule
  • Next by Date: Syntax for make new event in iCal?
  • Previous by thread: Re: Unicode to plain text
  • Next by thread: Re: Print ps
  • Index(es):
    • Date
    • Thread