Re: Convert URL to text?
Re: Convert URL to text?
- Subject: Re: Convert URL to text?
- From: kai <email@hidden>
- Date: Mon, 5 Dec 2005 04:25:22 +0000
Point(s) taken about Unicode-only characters. If they're a
possibility, then a bit more work would certainly be needed for a
vanilla solution.
--------
script s
set r to ASCII character 0
repeat with n from 1 to 255
set r to r & (ASCII character n)
end repeat
r
end script
property a : run s
property l : ("?" & a)'s characters
on plain_text from t
set r to ""
considering case
repeat with c in t
set r to r & my l's item (1 + (offset of c in a))
end repeat
end considering
r
end plain_text
set Unicode_text to ("Certain characters, such as " as Unicode text)
& «data utxt8679» ¬
& " or " & «data utxt5458» & ", can't be accurately reproduced as
plain text."
plain_text from Unicode_text
--------
---
kai
_______________________________________________
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