AppleScript and international characters
AppleScript and international characters
- Subject: AppleScript and international characters
- From: Christina Zeeh <email@hidden>
- Date: Wed, 21 Aug 2002 02:59:45 +0200
Hi,
I have the same problem that with umlauts and AppleScript that was
described in a posting by someone else on this list last February
(
http://lists.apple.com/archives/applescript-
users/2002/Feb/20/osxmailbugwithumlautatts.001.txt), It doesn't seem it
was answered then.
I wonder if someone has found a solution in the meantime ... the problem
is as follows:
If I get text from a compose window in Mail.app, and this text contains
umlauts, the text will be truncated at the first umlaut. This also seems
to happen with OmniGraffle, for which a lot of nice scripts exist to
export text into various formats - but none of those scripts work with
German umlauts.
I'm new to AppleScript, so if I missed something trivial, I'd be glad if
you could point it out to me.
The script I've tried is:
tell application "Mail"
activate
set my_message to make new compose message at the beginning of every
compose message
set the subject of my_message to "M|nchen"
make new message editor at beginning of message editors
set the compose message of message editor 1 to my_message
set the clipboard to the subject of the compose message of message
editor 1 as international text
end tell
"M|nchen" will appear fine in the subject of the compose message, but the
clipboard will only contain "M" :-(
Thanks in advance for any help ...
Christina
PS: In case anyone has problems with the encoding of this email: M|nchen =
M<u-umlaut>nchen
--
"I smile because I have no idea what's going on."
_______________________________________________
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.