• 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: Mail UTF-7 Script -- final
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail UTF-7 Script -- final


  • Subject: Re: Mail UTF-7 Script -- final
  • From: John Delacour <email@hidden>
  • Date: Thu, 19 Sep 2002 18:47:03 +0100

On 9/19/02 7:32 AM, "John Delacour" <email@hidden> wrote:

OE and Entourage will probably choke on this bit. I posted a script
recently to allow Eudora users to display Unicode.

Just for those who may think that makes OE and Entourage feeble somehow:

OE and Entourage, aside from being implemented totally in Unicode and thus
able to display it themselves without any recourse to other applications..


Simply false.

I said they would choke on it for two reasons and the first is this: you say that OE is "implemented totally in Unicode" but I have the latest version of OE and have just collected my message using OE, and OE is unable to display the accented characters because it uses the WASTE text engine and WASTE cannot deal with Unicode, whether in Smile or OE or Tex-Edit Plus or Style. All it can do is convert a small proportion of the Unicode set to styled text using a mish mash of fonts from the old character sets. It is therefore quite impossible that you were able to read the polytonic Greek in OE -- or in Entourage, if Entourage is based on WASTE. OE says "Some text in this message is in a language your computer cannot display". This is nonsense. What it means is a language that _OE_ and the WASTE engine cannot display. If you have any doubt about that, write to Marco Piovanelli.


If you want OE to display the message properly, you need to use TextEdit, just as Eudora has to. Do this and then tell me OE and Entourage understand Unicode.


(* Display a UTF-7 encoded Outlook Express message as Unicode in TextEdit *)
set {d, tmp} to {current date, path to temporary items}
set n to d - (get date (("1/1/" & (d's year) + 1)))
set f to "" & tmp & "OE_Message" & n & ".txt"
set Usig to (ASCII character 254) & (ASCII character 255)
set {Ocode, Ucode} to {"unicode-2-0-utf-7", "unicode-2-0"}
tell application "Outlook Express" -- or Entourage
set s to convert (get content of window 1) from "UTF-7"
end tell
open for access file f with write permission
set eof file f to 0
write Usig to file f
write s to file f
close access file f
tell application "Finder"
open file f using application file id "com.apple.textedit"
end tell
tell application "TextEdit" to activate
_______________________________________________
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: Mail UTF-7 Script -- final
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Lookup if an application...
  • Next by Date: QuickTime and AppleScript
  • Previous by thread: Re: Mail UTF-7 Script -- final
  • Next by thread: Re: Mail UTF-7 Script -- final
  • Index(es):
    • Date
    • Thread