• 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
Unicode messages received in Eudora
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unicode messages received in Eudora


  • Subject: Unicode messages received in Eudora
  • From: John Delacour <email@hidden>
  • Date: Thu, 29 Aug 2002 23:55:10 +0100

The script below requires the TEC OSAX (available for 9 & 10)

Eudora, like most editors at the moment, can't display Unicode as such. You could well receive messages encoded in UTF-8 which will be presented to you raw.

No problem. This script takes the content of the message, converts it to UTF-16 and displays it immediately in TextEdit, The same could be done with WolrdText in OS 9.

I'm not sure about the OS 9 version of TEC OSAX, but the X version will not complain if there's no UTF-8 to convert, so the script opens the message in any case in TexEdit.

If anyone wants me to send them a sample to test the script, let me know and I'll send you a Greek poem -- you'll need the Lucida Grande font.



tell app "Eudora"
try
set cantDo to get outgoing of front message
on error noMessage
display dialog "No message"
end
if cantDo then
--- make this all one line up to "after 3"
display dialog "
No incoming message to convert." with icon ,
0 buttons ,
{"OK"} default button ,
"OK" giving up after 3
return
end
set show all headers of front message to false
set s to get field "" of front message
end
set s to TECConvertText s fromCode "UTF-8" toCode "UNICODE-2-0"
set f to "" & (path to temporary items) & "Eudora Message"
open for access file f with write permission
set eof file f to 0
write (ASCII character 254) & (ASCII character 255) to file f
write s to file f
close access file f
tell app "Finder"
open file f using application file id "com.apple.textedit"
end
tell app "TextEdit" to activate


-- JD
_______________________________________________
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.

  • Prev by Date: Re: Project Builder crash
  • Next by Date: Re: Reading XML files (Philip Aker)
  • Previous by thread: Re: Marc Glasgow
  • Next by thread: AppleScript and Microsoft Excel
  • Index(es):
    • Date
    • Thread