Re: System Events "Show Clipboard" Bug?
Re: System Events "Show Clipboard" Bug?
- Subject: Re: System Events "Show Clipboard" Bug?
- From: John Delacour <email@hidden>
- Date: Sat, 19 Jul 2003 00:39:57 +0100
- Mac-eudora-version: 6.0a27
At 6:49 pm -0400 18/7/03, Jonathan Levi, M.D. wrote:
Good point: the clipboard should be able to recognize Unicode. I'll
send a bug report to Apple.
It gets more complicated.
1.
Run this script and you will see that it is impossible to get
anything but a list of a Unicode character onto the clipboard.
[ <> = lozenge character ]
set _filename to (ASCII character 215) as Unicode text
--> "<>"
set the clipboard to _filename
the clipboard
--> {"<>"}
set _reco to the clipboard as record
-->{Unicode text:"<>"}
set _utext to Unicode text of _reco
--> "<>"
set the clipboard to _utext
the clipboard
--> {"<>"}
There is no difficulty if you change 215 to 115 or anything up to 127
-- ie the US-ASCII range.
2.
Name a file "<>" (lozenge) and copy it. Then do "Show Clipboard" and
you will see the lozenge. Even with "inconvertible" Unicode, you
will see the Unicode text, though it cannot be properly displayed in
Geneva.
So something seems definitely to be wrong here.
Perhaps Chris can explain.
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.