• 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: Unicode text and class URL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Unicode text and class URL
      • From: Sander Tekelenburg <email@hidden>
    • Re: Unicode text and class URL
      • From: Bill Hoffman <email@hidden>
    • Re: Unicode text and class URL
      • From: Michelle Steiner <email@hidden>
References: 
 >Unicode text and class URL (From: Bill Hoffman <email@hidden>)
 >Re: Unicode text and class URL (From: Walter Ian Kaye <email@hidden>)
 >Re: Unicode text and class URL (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: Unicode text and class URL
  • Next by Date: Re: Unicode text and class URL
  • Previous by thread: Re: Unicode text and class URL
  • Next by thread: Re: Unicode text and class URL
  • Index(es):
    • Date
    • Thread