Script Editor and Unicode

Richmond richmondmathewson at gmail.com
Fri Jun 28 14:10:04 EDT 2013


I wonder how one can enter unicodeText directly into the script editor?

When one wants to put a script into an object without opening the script 
editor one does this sort of thing:

set the script of btn "unicodeTest" to fld "Nonsense"

now, if fld "nonsense" contains unicodeText that just ends up delivering 
gobbledegook.

this:

set the useUnicode to true
set the script of btn "unicodeTest" to fld "Nonsense"

is no better . . .

the reason for this, presumably, is that when one enters unicodeText 
into a fld the

set the useUnicode to true  is directly addressed to the fld, while in
my rather feeble attempt above it is aimed at the script rather than the 
script entry field of
the script editor

if one tries this sort of thing:

set the useUnicode to true
set the unicodeText of fld "Scripts" of the script of btn "unicodeTest" 
to fld "Nonsense"

an error is thrown.

Richmond.




More information about the use-livecode mailing list