• 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: Emmanuel <email@hidden>
  • Date: Wed, 19 Jan 2005 23:06:42 +0100

At 11:53 AM -0800 19/01/05, Brian Johnson wrote:
The following string concoctions for xText work... (OSX10.3.7,SE2.0,AS1.9.3)

   "Sample"
   "Sample" as text
   "Sample" as plain text  (compiles to ... as string)

but these fail (the clipboard is empty or invalid, though SE shows a (smallish) PICT object(?) in the result window if you leave off the last script line)

   "Sample" as Unicode text
  ("Sample" as Unicode text) as text
  ("Sample" as Unicode text) as plain text

It seems that coercing "Sample" to Unicode text and back is somehow different from just using "Sample" .. and it isn't clear how I can reliably coerce text fragments to "plain text" that c2g will digest well. Write the thing to disk and read it back in (as someone recently illustrated for a different problem)? Clarifications and suggestions welcome!

If you feel like you might use some help regarding AppleScript and Unicode, you may find the following page useful.


<http://www.satimage-software.com/en/unicode_and_applescript.html>

Emmanuel
From Satimage-software.
_______________________________________________
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


  • Follow-Ups:
    • PDF Form Reading
      • From: Bruce Robertson <email@hidden>
References: 
 >Text, Unicode Text, and String coercion ... (From: Brian Johnson <email@hidden>)

  • Prev by Date: how do I pick which version of AppleScript runs a script?
  • Next by Date: weird path to me error
  • Previous by thread: Text, Unicode Text, and String coercion ...
  • Next by thread: PDF Form Reading
  • Index(es):
    • Date
    • Thread