Re: Unicode text and class URL
Re: Unicode text and class URL
- Subject: Re: Unicode text and class URL
- From: Christopher Nebel <email@hidden>
- Date: Tue, 23 Mar 2004 00:03:48 -0800
On Mar 22, 2004, at 11:00 PM, Sander Tekelenburg wrote:
At 00:52 -0800 UTC, on 2004/03/22, Walter Ian Kaye wrote:
At 11:52p -0800 03/21/2004, Bill Hoffman didst inscribe upon an
electronic papyrus:
[...]
Even if
I coerce that Unicode text string to a plain text string, "x as URL"
will still fail with the same error.
It's not really a plain text string -- it's styled text.
Except that it doesn't claim to be of class styled text. It claims to
be a
string while clearly it isn't.
Wrong. AppleScript's "string" class may contain style information, and
when converting from Unicode text, always does, because the encoding is
implied by the style. "string" does not equal "plain text", and never
has.
If there's a bug here, it's that not all strings can be coerced to the
"URL" class. The thing no one has asked yet is why the originator is
bothering in the first place, since the "URL" class as it currently
exists is fairly useless.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.