• 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 Skinner <email@hidden>
  • Date: Thu, 19 Sep 2002 12:55:50 -0400

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

--
Paul Skinner
OS X 10.2 / AS 1.9 / PB Ti _______________________________________________
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 )
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Unicode to plain text (From: John Delacour <email@hidden>)

  • Prev by Date: Re: The State of the Nation
  • Next by Date: Re: Two related questions:
  • Previous by thread: Re: Unicode to plain text
  • Next by thread: Re: Unicode to plain text ( funklessly )
  • Index(es):
    • Date
    • Thread