Re: AppleScript and international characters
Re: AppleScript and international characters
- Subject: Re: AppleScript and international characters
- From: John Delacour <email@hidden>
- Date: Thu, 22 Aug 2002 00:15:06 +0100
At 2:59 am +0200 21/8/02, Christina Zeeh wrote:
I have the same problem that with umlauts and AppleScript that was
described in a posting by someone else on this list last February
This is not a problem with AppleScript but a bug in Mail
set the subject of my_message to "M|nchen"
...
..
set the clipboard to the subject of the compose message of
message editor 1 as international text
I don't know the reason for it except that Mail is so far only a
half-baked program, but it could well have something to do with
Unicode, since Mail will (I think) by default encode outgoing mail in
UTF-8 if it contains characters outside the us-ascii set.
AppleScript can deal with (though not always display) all sorts of
text, and the equivalent in Eudora or Outlook Express would give no
problems, though Outlook Express will also send UTF-8 as an option.
However, OE and, so far as I know Entourage, do not have
Unicode-enabled editing windows. I'm only guessing but I should
think this has something to do with the bug and you'll either have to
use a better-developed mailer or put up with Mail until it gets
better. It looks pretty awful to me.
tell app "Eudora"
set m to make message at end of mailbox "out"
set m's subject to "M|nchen"
get m's subject
end
set the clipboard to the result
--> "M|nchen"
If in Mail you do:
get the subject of the compose message...
you will still get only "M", so it has nothing at all to do with the
clipboard either.
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.