• 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: TextEdit Can't Find Without "as text"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEdit Can't Find Without "as text"


  • Subject: Re: TextEdit Can't Find Without "as text"
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 12 Aug 2007 09:12:01 -0700

On Aug 12, 2007, at 8:04 AM, Gil Dawson wrote:

Clearly the "as text" phrase in the demo script below is essential, but why?

Because "first name" returns unicode text, as do all other text properties of a person.


When you omit "as text", you are writing unicode text (i.e., two bytes per character). If you open the file in Text Wrangler, and show invisibles, you'll see that there's an upside-down question mark before each character in the line where you did not use "as text" to write it. That character represents the null character (ascii zero).

"Find" in TextEdit--and also in Text Wrangler, for that matter-- apparently can't handle Unicode text.

-- Michelle

--
If there's nothing that offends you in your community, then you know you're not living in a free society.
Kim Campbell - former Prime Minister of Canada


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: TextEdit Can't Find Without "as text"
      • From: "Gary (Lists)" <email@hidden>
References: 
 >TextEdit Can't Find Without "as text" (From: Gil Dawson <email@hidden>)

  • Prev by Date: TextEdit Can't Find Without "as text"
  • Next by Date: iWork Numbers
  • Previous by thread: TextEdit Can't Find Without "as text"
  • Next by thread: Re: TextEdit Can't Find Without "as text"
  • Index(es):
    • Date
    • Thread