• 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: 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
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>)
 >Re: Convert URL to text? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Validating email address
  • Next by Date: File type for PDF
  • Previous by thread: Re: Convert URL to text?
  • Next by thread: Re: Validating email address
  • Index(es):
    • Date
    • Thread