Re: Convert URL to text?
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