• 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: Text, Unicode Text, and String coercion ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text, Unicode Text, and String coercion ...


  • Subject: Re: Text, Unicode Text, and String coercion ...
  • From: Brian Johnson <email@hidden>
  • Date: Wed, 19 Jan 2005 16:19:25 -0800 (PST)


On Wed, 19 Jan 2005, Brian Johnson wrote:

I'm confused, bewildered and befuddled by the behavior of one of my scripts. It was born under OS-9 and used an FMPro database to store info. It extracts
<snip>

I knew this had been hashed over a few times in the last couple of years, explained by Chris Nebel, etc., but it took me a while to find it...

FWIW, Unicode converts to styled text under the "string" coercion, and styled text sometimes doesn't work (as in this case).

However, Paul Skinner posted the following back in Dec 2002, and it works just dandy in this case.

set someText to "abc" as Unicode text-->unicode text string

set {text:someText} to (text of someText) as text-->styled text string[*]

someText-->plain text string

[*]Note: Due to the unusual list assignment method; this line returns a syled text string. The value of plainText is plain text despite this result. If you had wanted styled text from unicode you could set plainText to the result.

- brian johnson _______________________________________________ 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: 
 >Text, Unicode Text, and String coercion ... (From: Brian Johnson <email@hidden>)

  • Prev by Date: Re: Delaying a script
  • Next by Date: Re: Internet Connect Script
  • Previous by thread: Re: PDF Form Reading
  • Next by thread: Re: Text, Unicode Text, and String coercion ...
  • Index(es):
    • Date
    • Thread