Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Convert URL to text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert URL to text?



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


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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.