• 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: Convert URL to text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert URL to text?


  • Subject: Re: Convert URL to text?
  • From: Emmanuel <email@hidden>
  • Date: Sat, 3 Dec 2005 20:38:35 +0100

At 7:26 PM +0000 12/3/05, kai wrote:

You're right, Scott. Safari returns theURL as Unicode text, and the coercion to text/string, while returning a class of string, actually results in international/styled text. In other words, the text still retains some encoding. Since there are several ways to strip this from the text, here's a selection:


------------------

set {text:keyName} to theURL as text

------------------

set keyName to theURL as string as record as list as string

------------------

set keyName to (theURL as string as record)'s «class ktxt»

------------------

This is only partially true, as emphasized in the third note in Satimage-software's page about Unicode and AppleScript:
<http://www.satimage.fr/software/en/unicode_and_applescript.html#note3>


Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Convert URL to text?
      • From: kai <email@hidden>
References: 
 >Re: Fwd: Validating email address (From: has <email@hidden>)
 >Convert URL to text? (From: Scott Dunn <email@hidden>)
 >Re: Convert URL to text? (From: kai <email@hidden>)

  • Prev by Date: Re: Convert URL to text?
  • Next by Date: Re: Validating email address -- What are the allowed chars?
  • Previous by thread: Re: Convert URL to text?
  • Next by thread: Re: Convert URL to text?
  • Index(es):
    • Date
    • Thread