• 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 ( funklessly )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Unicode to plain text ( funklessly ) (not)
      • From: Paul Skinner <email@hidden>
References: 
 >Re: Unicode to plain text ( funklessly ) (From: Paul Skinner <email@hidden>)

  • Prev by Date: simple applescript help needed
  • Next by Date: Re: Two related questions:
  • Previous by thread: Re: Unicode to plain text ( funklessly )
  • Next by thread: Re: Unicode to plain text ( funklessly ) (not)
  • Index(es):
    • Date
    • Thread