Re: Text, Unicode Text, and String coercion ...
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