Re: Unicode to plain text ( funklessly )
Re: Unicode to plain text ( funklessly )
- Subject: Re: Unicode to plain text ( funklessly )
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 19 Sep 2002 11:41:23 -0700
On 9/19/02 9:55 AM, "Paul Skinner" <email@hidden> wrote:
>
> At 3:14 pm -0700 18/9/02, Jon Pugh wrote:
>
>
>
>> At 12:02 PM -0700 9/18/02, Jon Pugh wrote:
>
>>> Does anyone know how to convert utxt to TEXT in plain AppleScript?
>
>>
>
>> And the winner is:
>
>>
>
>> At 2:04 PM -0700 9/18/02, John Coelho wrote:
>
>>> set plain_text to +class ktxt; of (unicodeString as record)
>
>>
>
>> Thank you.
>
>
>
> Thank you indeed! This solves what I too was beginning to think was
>
> insoluble.
>
>
There's no funky stuff necessary.
>
>
tell application "Mail"
>
set unicodeString to the content of the first item of (get the
>
selection)
>
end tell
>
class of unicodeString
>
-->Unicode text
>
>
set plainTextString to (text of unicodeString) as text
>
class of plainTextString
>
-->string
That gives you 'international string' which is styled text, not plain text.
You too have not been paying attention the last several months.
--
Paul Berkowitz
_______________________________________________
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.