Re: Unicode to plain text
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.